From e50fb31af742c914c16d468e7c918eeaaa1adf40 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Wed, 5 Jun 2013 15:40:11 +0200 Subject: [PATCH] First import --- .gitignore | 1 + sources | 1 + stoken-0.2-no-static-cflags.patch | 13 ++++ stoken.spec | 118 ++++++++++++++++++++++++++++++ 4 files changed, 133 insertions(+) create mode 100644 stoken-0.2-no-static-cflags.patch create mode 100644 stoken.spec diff --git a/.gitignore b/.gitignore index e69de29..ad63f4d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/stoken-0.2.tar.gz diff --git a/sources b/sources index e69de29..976e8b7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d815783d7198f1181c1a72e3d730d367 stoken-0.2.tar.gz diff --git a/stoken-0.2-no-static-cflags.patch b/stoken-0.2-no-static-cflags.patch new file mode 100644 index 0000000..727e320 --- /dev/null +++ b/stoken-0.2-no-static-cflags.patch @@ -0,0 +1,13 @@ +diff -Naur stoken-0.2.old/configure.ac stoken-0.2/configure.ac +--- stoken-0.2.old/configure.ac 2013-06-03 20:28:55.389316251 +0200 ++++ stoken-0.2/configure.ac 2013-06-03 21:51:29.271677470 +0200 +@@ -33,9 +33,6 @@ + + if test "x$enable_debug" = xyes; then + CFLAGS="$CFLAGS -O0 -ggdb" +-else +- CFLAGS="$CFLAGS -O2" +- LDFLAGS="$LDFLAGS -Wl,--strip-debug" + fi + + EXTRA_PC_LIBS="" diff --git a/stoken.spec b/stoken.spec new file mode 100644 index 0000000..b6f123b --- /dev/null +++ b/stoken.spec @@ -0,0 +1,118 @@ +Name: stoken +Version: 0.2 +Release: 4%{?dist} +Summary: Token code generator compatible with RSA SecurID 128-bit (AES) token + +License: LGPLv2+ +URL: http://%{name}.sf.net +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: %{name}-0.2-no-static-cflags.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: libtool +BuildRequires: pkgconfig(libtomcrypt) + +%description +Software Token for Linux/UNIX. It's a token code generator compatible with RSA +SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or +endorsed by RSA Security. + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{_isa} = %{version}-%{release} + +%description devel +Software Token for Linux/UNIX. It's a token code generator compatible with RSA +SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or +endorsed by RSA Security. + +This package provides the development files for %{name}. + +%package libs +Summary: Libraries for %{name} +Requires(post): ldconfig + +%description libs +Software Token for Linux/UNIX. It's a token code generator compatible with RSA +SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or +endorsed by RSA Security. + +This package contains %{name} libraries. + +%package cli +Summary: Command line tool for %{name} +Requires: %{name}-libs%{_isa} = %{version}-%{release} + +%description cli +Software Token for Linux/UNIX. It's a token code generator compatible with RSA +SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or +endorsed by RSA Security. + +This package contains the command line tool for %{name}. + +%package gui +Summary: Graphical interface program for %{name} +Requires: %{name}-libs%{_isa} = %{version}-%{release} + +%description gui +Software Token for Linux/UNIX. It's a token code generator compatible with RSA +SecurID 128-bit (AES) tokens. It is a hobbyist project, not affiliated with or +endorsed by RSA Security. + +This package contains the graphical interface program for %{name}. + +%prep +%setup -q +%patch0 -p1 -b .no-static-cflags + +%build +autoreconf -v --install +%configure --with-gtk +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-gui.desktop +find %{buildroot} -type f -name "*.la" -delete +find %{buildroot} -type f -name "*.a" -delete + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files libs +%doc COPYING.LIB README +%{_libdir}/*.so.* + +%files cli +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + +%files gui +%{_bindir}/%{name}-gui +%{_datadir}/applications/%{name}-gui.desktop +%{_datadir}/pixmaps/%{name}-gui.png +%{_mandir}/man1/%{name}-gui.1.gz + +%files devel +%{_includedir}/%{name}.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Wed Jun 05 2013 Simone Caronni - 0.2-4 +- Change gtk and libtomcrypt build requirements. +- Remove useless "--with-libtomcrypt" parameter from %%configure. + +* Tue Jun 04 2013 Simone Caronni - 0.2-3 +- Add patch to avoid static CFLAGS. +- Require proper libtomcrypt version. + +* Mon Jun 03 2013 Simone Caronni - 0.2-2 +- Remove CFLAGS override and rpath commands. + +* Mon Jun 03 2013 Simone Caronni - 0.2-1 +- First build.