zxing/zxing.spec

78 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-26 09:48:16 +08:00
Name: zxing
2023-12-27 18:44:59 +08:00
Version: 3.5.1
2020-08-26 09:48:16 +08:00
Release: 1
Summary: Java multi-format 1D/2D bar-code image processing library
License: ASL 2.0
URL: https://github.com/zxing/zxing/
2023-12-27 18:44:59 +08:00
Source0: https://github.com/zxing/zxing/archive/refs/tags/%{name}-%{version}.tar.gz
2020-08-26 09:48:16 +08:00
BuildRequires: maven-local mvn(com.beust:jcommander) mvn(junit:junit)
2023-12-27 18:44:59 +08:00
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
2020-08-26 09:48:16 +08:00
Provides: bundled(barcode4j)
BuildArch: noarch
%description
ZXing ("zebra crossing") is an open-source,
multi-format 1D/2D bar-code image processing library
implemented in Java, with ports to other languages.
%package javase
Summary: ZXing Java SE extensions
%description javase
Java SE-specific extensions to core ZXing library.
%package parent
Summary: ZXing Parent POM
%description parent
This package provides ZXing Parent POM.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_dep com.google.android:
%pom_remove_dep :android-core
%pom_remove_dep :android-integration
2023-12-27 18:44:59 +08:00
%pom_remove_dep com.github.jai-imageio:jai-imageio-core javase/pom.xml
2020-08-26 09:48:16 +08:00
%pom_disable_module android-core
%pom_disable_module android-integration
%pom_disable_module zxing.appspot.com
%pom_disable_module zxingorg
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :clirr-maven-plugin
2023-12-27 18:44:59 +08:00
rm -r javase/src/test/java/com/google/zxing/client/j2se/MatrixToImageWriterTestCase.java
2020-08-26 09:48:16 +08:00
%build
%mvn_build -s
%install
%mvn_install
%files -f .mfiles-core
%doc AUTHORS CHANGES README.md
2023-12-27 18:44:59 +08:00
%license LICENSE NOTICE
2020-08-26 09:48:16 +08:00
%files javase -f .mfiles-javase
2023-12-27 18:44:59 +08:00
%license LICENSE NOTICE
2020-08-26 09:48:16 +08:00
%files parent -f .mfiles-zxing-parent
2023-12-27 18:44:59 +08:00
%license LICENSE NOTICE
2020-08-26 09:48:16 +08:00
%files javadoc -f .mfiles-javadoc
2023-12-27 18:44:59 +08:00
%license LICENSE NOTICE
2020-08-26 09:48:16 +08:00
%changelog
2023-12-27 18:44:59 +08:00
* Wed Dec 27 2023 Ge Wang <wang__ge@126.com> - 3.5.1-1
- update to version 3.5.1
2020-08-26 09:48:16 +08:00
* Thu Aug 20 2020 maminjie <maminjie1@huawei.com> - 3.2.1-1
- package init