[mopac7] Cleanup.

Christopher Meng cicku at fedoraproject.org
Wed Jul 2 11:39:26 UTC 2014


commit 7e709239160ceaa4db93cd43dc10843ca8a5225f
Author: Christopher Meng <i at cicku.me>
Date:   Wed Jul 2 19:39:24 2014 +0800

    Cleanup.

 mopac7.spec |   58 +++++++++++++++++++++++++---------------------------------
 1 files changed, 25 insertions(+), 33 deletions(-)
---
diff --git a/mopac7.spec b/mopac7.spec
index 339ef2b..4be846d 100644
--- a/mopac7.spec
+++ b/mopac7.spec
@@ -1,15 +1,13 @@
 Name:           mopac7
 Summary:        Semi-empirical quantum mechanics suite
 Version:        1.15
-Release:        17%{?dist}
+Release:        18%{?dist}
 License:        Public Domain
-Group:          Applications/Engineering
 URL:            http://sourceforge.net/projects/mopac7/
-Source0:        http://www.uku.fi/~thassine/projects/download/current/%{name}-%{version}.tar.gz
-Requires:       %{name}-libs = %{version}-%{release}
-BuildRequires:  libtool
+Source0:        http://bioinformatics.org/ghemical/download/current/mopac7-%{version}.tar.gz
 BuildRequires:  gcc-gfortran
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:  libtool
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 
 %description
 MOPAC7 is a semi-empirical quantum-mechanics code written by James
@@ -17,72 +15,66 @@ J. P.  Stewart and co-workers. The purpose of this project is to
 maintain MOPAC7 as a stand-alone program as well as a library that
 provides the functionality of MOPAC7 to other programs.
 
-%package libs
-Summary:    Dynamic libraries from %{name}
-Group:      Development/Libraries
+%package        libs
+Summary:        Dynamic libraries from %{name}
 
-%description libs
+%description    libs
 Dynamic libraries from %{name}.
 
-%package devel
-Summary:    Header files and libraries from %{name}
-Group:      Development/Libraries
-Requires:   %{name}-libs = %{version}-%{release}
-Requires:   pkgconfig
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 
-%description devel
-Header include files and libraries for developing programs based on %{name}.
+%description    devel
+This package contains libraries and header files for
+developing applications that use %{name}.
 
 %prep
 %setup -q
 perl -pi -e "s#-lg2c##g" libmopac7.pc.in
 
 %build
-autoreconf -v -f -i
+autoreconf -fiv
 %configure --disable-static
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-make %{?_smp_mflags}
+%make_build
 
 %install
-rm -rf %{buildroot}
-make DESTDIR="%{buildroot}" INSTALL="install -p" install
+%make_install
 # make install does not actually install the main binary
 # chrpath --delete     fortran/.libs/%{name}
-install -D -p -m 755 fortran/.libs/%{name} %{buildroot}%{_bindir}/%{name}
+install -pDm0755 fortran/.libs/%{name} %{buildroot}%{_bindir}/%{name}
 # install a convenience fortran wrapper for the main binary
 sed "s;./fortran;%{_bindir};" run_mopac7 > %{buildroot}%{_bindir}/run_mopac7
 chmod 755 %{buildroot}%{_bindir}/run_mopac7
 # kill off the .la files
-find %{buildroot}%{_libdir} -name *.la -exec rm -rf {} \;
+find %{buildroot}%{_libdir} -name *.la -delete -print
 # kill off the makefiles in tests directory so we can use them as samples in %doc
-find tests -name 'Makefile*'           -exec rm -rf {} \;
-
-%clean
-rm -rf %{buildroot}
+find tests -name 'Makefile*' -delete -print
 
 %post libs -p /sbin/ldconfig
+
 %postun libs -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
-%doc tests
+%doc tests COPYING
 %{_bindir}/mopac7
 %{_bindir}/run_mopac7
 
 %files libs
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING ChangeLog NEWS README
 %{_libdir}/libmopac7.so.*
 
 %files devel
-%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog NEWS README
 %{_includedir}/mopac7/
 %{_libdir}/libmopac7.so
 %{_libdir}/pkgconfig/libmopac7.pc
 
-
 %changelog
+* Wed Jul 02 2014 Christopher Meng <rpm at cicku.me> - 1.15-18
+- NVR bump
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.15-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list