Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad:java
zxing
zxing.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zxing.spec of Package zxing
# # spec file for package zxing # # Copyright (c) 2014 Peter Conrad <obs@quisquis.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ Name: zxing Version: 3.0.1 Release: 1 License: Apache-2.0 Summary: Java barcode generator + decoder library Url: https://github.com/zxing/zxing/ Group: Development/Libraries/Java Source: https://github.com/zxing/zxing/archive/zxing-%{version}.tar.gz BuildRequires: java-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if 0%{?fedora} > 0 && 0%{?fedora} < 21 BuildRequires: java-1.5.0-gcj-devel %endif %if 0%{?suse_version} > 1300 BuildRequires: javapackages-tools %endif %description ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. %package javadoc Summary: Javadoc for %name Group: Development/Libraries/Java %description javadoc This package contains the documentation for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} %build %__mkdir_p build/core find core/src/main -name \*.java \ | xargs javac -encoding UTF-8 -source 7 -target 7 -g -d build/core jar cf "%{name}-core.jar" -C build/core . %__mkdir_p build/j2se find javase/src/main -name \*.java \ | xargs javac -encoding UTF-8 -source 7 -target 7 -g -cp build/core -d build/j2se jar cf "%{name}-j2se.jar" -C build/j2se . %__mkdir_p build/doc javadoc -encoding UTF-8 -d build/doc/ -sourcepath core/src/main/java:javase/src/main/java -subpackages com.google.zxing %install %__install -dm 755 "%{buildroot}/%{_javadir}" for module in core j2se; do %__install -m 0644 "%{name}-$module.jar" "%{buildroot}/%{_javadir}/%{name}-$module-%{version}.jar" %__ln_s "%{name}-$module-%{version}.jar" "%{buildroot}/%{_javadir}/%{name}-$module.jar" done %__install -dm 755 "%{buildroot}/%{_javadocdir}/%{name}-%{version}" cp -pr build/doc/* "%{buildroot}/%{_javadocdir}/%{name}-%{version}/" %files %defattr(-,root,root,-) %doc AUTHORS CHANGES COPYING NOTICE README.md %{_javadir}/%{name}-core-%{version}.jar %{_javadir}/%{name}-core.jar %{_javadir}/%{name}-j2se-%{version}.jar %{_javadir}/%{name}-j2se.jar %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}-%{version} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor