SHA256
1
0
forked from pool/npth

sanitize styling again

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/npth?expand=0&rev=18
This commit is contained in:
2017-05-16 22:20:33 +00:00
committed by Git OBS Bridge
parent ff4381104e
commit 51277a865e

View File

@@ -26,11 +26,11 @@ Group: Development/Libraries/C and C++
Url: http://gnupg.org/
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/
#Git-Clone: git://git.gnupg.org/npth
Source: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2.sig
Source: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2.sig
# https://www.gnupg.org/signature_key.html
Source4: %{name}.keyring
Source99: %{name}.changes
Source4: %name.keyring
Source99: %name.changes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -39,11 +39,11 @@ similar to the one known from GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth
allows the use of libraries which are not compatible to GNU Pth.
%package -n %{lname}
%package -n %lname
Summary: New GNU Portable Threads library
Group: System/Libraries
%description -n %{lname}
%description -n %lname
nPth is a non-preemptive threads implementation using an API very
similar to the one known from GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth
@@ -52,7 +52,7 @@ allows the use of libraries which are not compatible to GNU Pth.
%package devel
Summary: Development files for the GNU New Portable Threads library
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: %lname = %version
%description devel
nPth is a non-preemptive threads implementation using an API very
@@ -64,33 +64,33 @@ allows the use of libraries which are not compatible to GNU Pth.
%setup -q
%build
date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %{SOURCE99})
date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %SOURCE99)
%configure \
--enable-build-timestamp="$date"
make %{?_smp_mflags}
%install
b=%{buildroot}
make install DESTDIR="$b"
find %{buildroot} -type f -name "*.la" -delete -print
b="%buildroot"
%make_install
find "%buildroot" -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %{lname}
%files -n %lname
%defattr(-,root,root)
%doc COPYING.LIB AUTHORS NEWS ChangeLog README
%{_libdir}/libnpth.so.0*
%_libdir/libnpth.so.0*
%files devel
%defattr(-,root,root)
%doc COPYING.LIB AUTHORS NEWS ChangeLog README
%{_bindir}/npth-config
%{_includedir}/npth.h
%{_libdir}/libnpth.so
%{_datadir}/aclocal
%_bindir/npth-config
%_includedir/npth.h
%_libdir/libnpth.so
%_datadir/aclocal
%changelog