[osutil/f13/master] - Initial revision. (kwright at redhat.com & mharmsen at redhat.com)
kwright
kwright at fedoraproject.org
Thu Jan 6 22:45:19 UTC 2011
commit 8e09c3810820c7b36f5dea506bfba4be37f40e1e
Author: Kevin Wright <kwright at redhat.com>
Date: Thu Jan 6 14:45:05 2011 -0800
- Initial revision. (kwright at redhat.com & mharmsen at redhat.com)
.gitignore | 1 +
clog | 1 +
osutil.spec | 140 ++++++++++++++++++++++++++++-------------------------------
sources | 2 +-
4 files changed, 69 insertions(+), 75 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 38a603f..998f3a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
osutil-1.3.1.tar.gz
+/osutil-2.0.0.tar.gz
diff --git a/clog b/clog
new file mode 100644
index 0000000..ff97fe4
--- /dev/null
+++ b/clog
@@ -0,0 +1 @@
+- Initial revision. (kwright at redhat.com & mharmsen at redhat.com)
diff --git a/osutil.spec b/osutil.spec
index fdc124f..7c06576 100644
--- a/osutil.spec
+++ b/osutil.spec
@@ -1,96 +1,88 @@
-Name: osutil
-Version: 1.3.1
-Release: 3%{?dist}
-Summary: Operating System Utilities JNI Package
-URL: http://pki.fedoraproject.org/
-License: GPLv2
-Group: System Environment/Libraries
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# (C) 2010 Red Hat, Inc.
+# All rights reserved.
+# END COPYRIGHT BLOCK
+
+Name: osutil
+Version: 2.0.0
+Release: 1%{?dist}
+Summary: Operating System Utilities JNI Package
+URL: http://pki.fedoraproject.org/
+License: GPLv2
+Group: System Environment/Libraries
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: cmake
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: jpackage-utils
+BuildRequires: nspr-devel >= 4.6.99
+BuildRequires: nss-devel >= 3.12.3.99
+BuildRequires: pkgconfig
+
+Requires: java >= 1:1.6.0
+Requires: jpackage-utils
+Requires: nss >= 3.12.3.99
+
+Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%description
+The Operating System Utilities Java Native Interface (JNI) package
+supplies various native operating system operations to Java programs.
-BuildRequires: ant
-BuildRequires: java-devel >= 1:1.6.0
-BuildRequires: jpackage-utils
-BuildRequires: nspr-devel >= 4.6.99
-BuildRequires: nss-devel >= 3.12.3.99
-BuildRequires: pkgconfig
-Requires: java >= 1:1.6.0
-Requires: jpackage-utils
-Requires: nss >= 3.12.3.99
+%prep
-Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
-%if 0%{?rhel}
-#rhel has no java on ppc
-ExcludeArch: ppc
-%endif
+%setup -q
-%description
-The Operating System Utilities Java Native Interface (JNI) package
-supplies various native operating system operations to Java programs.
-
-%prep
+%clean
+%{__rm} -rf %{buildroot}
-%setup -q -n %{name}-%{version}
%build
-ant \
- -Dproduct.ui.flavor.prefix="" \
- -Dproduct.prefix="" \
- -Dproduct="%{name}" \
- -Dversion="%{version}"
-%configure \
-%ifarch ppc64 s390x sparc64 x86_64
- --enable-64bit \
-%endif
- --libdir=%{_libdir}
-make %{?_smp_mflags}
+%{__mkdir_p} build
+cd build
+%cmake -DBUILD_OSUTIL:BOOL=ON ..
+%{__make} VERBOSE=1 %{?_smp_mflags}
+
%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
+%{__rm} -rf %{buildroot}
+cd build
+%{__make} install DESTDIR=%{buildroot}
-## rearrange files to be in the desired native packaging layout
-mkdir -p %{buildroot}%{_libdir}/%{name}/
-mv %{buildroot}/opt/java/%{name}.jar %{buildroot}%{_libdir}/%{name}/%{name}-%{version}.jar
-mv %{buildroot}%{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/%{name}/lib%{name}.so
-mkdir -p %{buildroot}%{_jnidir}/
-cd %{buildroot}%{_jnidir} ; ln -s %{_libdir}/%{name}/%{name}-%{version}.jar %{name}.jar
+cd %{buildroot}%{_libdir}/osutil
+%{__rm} osutil.jar
+%{__ln_s} osutil-%{version}.jar osutil.jar
-## remove unwanted files
-rm -rf %{buildroot}/opt
-rm -rf %{buildroot}%{_libdir}/lib%{name}.la
+cd %{buildroot}%{_jnidir}
+%{__rm} osutil.jar
+%{__ln_s} %{_libdir}/osutil/osutil.jar osutil.jar
-%clean
-rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
-%{_jnidir}/*
-%{_libdir}/%{name}/
-
-%changelog
-* Mon Feb 01 2010 Kevin Wright <kwright at redhat.com> 1.3.1-3
-- no java on rhel ppc
-
-* Fri Jan 29 2010 Matthew Harmsen <mharmsen at redhat.com> 1.3.1-2
-- Applied %%{?_smp_mflags} option to 'make'
+%{_jnidir}/osutil.jar
+%dir %{_libdir}/osutil
+%{_libdir}/osutil/*
-* Mon Dec 14 2009 Kevin Wright <kwright at redhat.com> 1.3.1-1
-- Removed BuildRequires bash
-- Removed 'with exceptions' from License
-* Fri Oct 30 2009 Matthew Harmsen <mharmsen at redhat.com> 1.3.0-3
-- Bugzilla Bug #521983 - New package for Dogtag PKI: osutil
-- Removed LICENSE logic from installation section
-- Take ownership of library directory
-
-* Tue Oct 27 2009 Matthew Harmsen <mharmsen at redhat.com> 1.3.0-2
-- Bugzilla Bug #521983 - New package for Dogtag PKI: osutil
-- Complied with Fedora JNI packaging logic
+%changelog
+* Wed Dec 1 2010 Matthew Harmsen <mharmsen at redhat.com> 2.0.0-1
+- Initial revision. (kwright at redhat.com & mharmsen at redhat.com)
-* Thu Oct 8 2009 Matthew Harmsen <mharmsen at redhat.com> 1.3.0-1
-- Bugzilla Bug #521983 - New package for Dogtag PKI: osutil
diff --git a/sources b/sources
index 1a2491a..811f55f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3bbf5eec8347db610e3b927fe7e9c876 osutil-1.3.1.tar.gz
+e8c0faf9f279d2128eb0f5e3ed16fa4c osutil-2.0.0.tar.gz
More information about the scm-commits
mailing list