From 66901b25ee15744bc76b346411bd6298ac4668de Mon Sep 17 00:00:00 2001 From: James Antill Date: Mon, 8 Aug 2022 12:44:38 -0400 Subject: [PATCH] Import rpm: 14be75c9788904bd967b11b29d86273628e83c55 --- .gitignore | 1 + sources | 1 + uom-systems.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 uom-systems.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d50966 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/uom-systems-0.7.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..f5d81bc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA1 (uom-systems-0.7.tar.gz) = 249e3807ca00fbc8acabfd5b11a35b7ca8294a32 diff --git a/uom-systems.spec b/uom-systems.spec new file mode 100644 index 0000000..4f850e2 --- /dev/null +++ b/uom-systems.spec @@ -0,0 +1,79 @@ +Name: uom-systems +Version: 0.7 +Release: 1%{?dist} +Summary: Units of Measurement Systems (JSR 363) +License: BSD +URL: https://github.com/unitsofmeasurement/%{name} +Source0: https://github.com/unitsofmeasurement/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: junit +BuildRequires: maven-local +BuildRequires: maven-jar-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-dependency-plugin +BuildRequires: maven-source-plugin +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(si.uom:si-parent:pom:) +BuildRequires: mvn(si.uom:si-units-java8) +BuildRequires: mvn(javax.measure:unit-api) +BuildRequires: mvn(tec.uom:uom-parent:pom:) +BuildRequires: mvn(tec.uom:uom-se) + +BuildArch: noarch + +%description +Units of Measurement Systems - modules for JSR 363. + +%package javadoc +BuildArch: noarch +Summary: Javadoc for the Units of Measurement Systems + +%description javadoc +This package contains documentation for the Units of Measurement +Systems (JSR 363). + +%prep +%setup -q -n %{name}-%{version} +%pom_remove_plugin :maven-javadoc-plugin quantity +%pom_remove_plugin :maven-javadoc-plugin common-java8 +%pom_remove_plugin :maven-javadoc-plugin unicode-java8 +%pom_remove_plugin :maven-javadoc-plugin ucum-java8 +%pom_disable_module common # use only Java 8+ +%pom_disable_module unicode # use only Java 8+ +%pom_xpath_remove "pom:properties/pom:quantity.version" +%pom_xpath_inject "pom:properties" "%{version}" + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Wed Apr 12 2017 Nathan Scott - 0.7-1 +- Update to latest upstream sources. + +* Tue Apr 11 2017 Dave Brolley - 0.6-3 +- Spec file changes for building on RHEL7. + +* Wed Mar 22 2017 Nathan Scott - 0.6-2 +- Incorprate feedback from gil cattaneo on all uom packages. + +* Mon Mar 06 2017 Nathan Scott - 0.6-1 +- Update to latest upstream sources. + +* Tue Feb 28 2017 Nathan Scott - 0.5-3 +- Resolve lintian errors - source, license, documentation. + +* Fri Feb 24 2017 Nathan Scott - 0.5-2 +- Add unitsofmeasurement prefix to package name. + +* Fri Oct 14 2016 Nathan Scott - 0.5-1 +- Initial version.