Move headers to default location.

epel9
Simone Caronni 11 years ago
parent 237ab51be3
commit 28d3b3d83c

@ -25,7 +25,7 @@
+prefix=/usr +prefix=/usr
+exec_prefix=${prefix} +exec_prefix=${prefix}
+libdir=${exec_prefix}/lib +libdir=${exec_prefix}/lib
+includedir=${prefix}/include/tomcrypt +includedir=${prefix}/include
+ +
+Name: LibTomCrypt +Name: LibTomCrypt
+Description: public domain open source cryptographic toolkit +Description: public domain open source cryptographic toolkit

@ -1,6 +1,6 @@
Name: libtomcrypt Name: libtomcrypt
Version: 1.17 Version: 1.17
Release: 20%{?dist} Release: 21%{?dist}
Summary: A comprehensive, portable cryptographic toolkit Summary: A comprehensive, portable cryptographic toolkit
License: Public Domain License: Public Domain
@ -10,7 +10,7 @@ Patch0: %{name}-makefile.patch
Patch1: %{name}-pkgconfig.patch Patch1: %{name}-pkgconfig.patch
BuildRequires: ghostscript BuildRequires: ghostscript
BuildRequires: libtommath-devel >= 0.42.0 BuildRequires: libtommath-devel >= 0.42.0-3
BuildRequires: libtool BuildRequires: libtool
%if 0%{?fedora} || 0%{?rhel} >= 7 %if 0%{?fedora} || 0%{?rhel} >= 7
@ -58,15 +58,14 @@ The %{name}-doc package contains documentation for use with %{name}.
%patch1 -p1 -b .pkgconfig %patch1 -p1 -b .pkgconfig
%build %build
# no configure script ships with libtomcrypt. Its only requirement is # No configure script ships with libtomcrypt. Its only requirement is ANSI C and
# ANSI C. And libtommath. Explicitly force it to be built against libtommath # libtommath. Explicitly force it to be built against libtommath.
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -I%{_includedir}/tommath" export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC"
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile docs make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile docs
%check %check
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM -I%{_includedir}/tommath" export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM"
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" test make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" test
./test ./test
@ -78,12 +77,12 @@ export INSTALL_USER=$(id -un)
export INSTALL_GROUP=$(id -gn) export INSTALL_GROUP=$(id -gn)
export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM" export CFLAGS="$RPM_OPT_FLAGS -DLTM_DESC -DUSE_LTM"
make install INCPATH=%{_includedir}/tomcrypt DESTDIR=%{buildroot} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared make install DESTDIR=%{buildroot} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
find %{buildroot} -name '*.h' -exec chmod 644 {} \; find %{buildroot} -name '*.h' -exec chmod 644 {} \;
find %{buildroot} -name '*.c' -exec chmod 644 {} \; find %{buildroot} -name '*.c' -exec chmod 644 {} \;
chmod 644 LICENSE chmod 644 LICENSE
# remove unneeded files # Remove unneeded files
find %{buildroot} -name '*.la' -delete find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete find %{buildroot} -name '*.a' -delete
find %{buildroot} -name 'libtomcrypt_prof*' -delete find %{buildroot} -name 'libtomcrypt_prof*' -delete
@ -97,8 +96,7 @@ find %{buildroot} -name 'libtomcrypt_prof*' -delete
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%doc LICENSE %{_includedir}/*.h
%{_includedir}/tomcrypt
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/libtomcrypt.pc %{_libdir}/pkgconfig/libtomcrypt.pc
@ -106,6 +104,9 @@ find %{buildroot} -name 'libtomcrypt_prof*' -delete
%doc LICENSE doc/crypt.pdf %doc LICENSE doc/crypt.pdf
%changelog %changelog
* Sun Sep 29 2013 Simone Caronni <negativo17@gmail.com> - 1.17-21
- Move headers to default location.
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 1.17-20 * Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 1.17-20
- Make doc package noarch. - Make doc package noarch.
- Remove executable bits from LICENSE file and source files. - Remove executable bits from LICENSE file and source files.

Loading…
Cancel
Save