From a302a4111173857c458eb1c299be2bcf969fbaba Mon Sep 17 00:00:00 2001 From: Rakesh Pandit Date: Nov 08 2008 04:35:31 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..099a9d5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pstreams-0.6.0.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..2b52028 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +pstreams-devel-0_6_0-6_fc10:HEAD:pstreams-devel-0.6.0-6.fc10.src.rpm:1226138404 diff --git a/pstreams-0.6.0-destdir_timestamp.patch b/pstreams-0.6.0-destdir_timestamp.patch new file mode 100644 index 0000000..48999b7 --- /dev/null +++ b/pstreams-0.6.0-destdir_timestamp.patch @@ -0,0 +1,17 @@ +- support DESTDIR +- preserve timestamp of pstream.h + +diff -up pstreams-0.6.0/Makefile.destdir_timestamp pstreams-0.6.0/Makefile +--- pstreams-0.6.0/Makefile.destdir_timestamp 2008-11-07 13:49:44.000000000 +0100 ++++ pstreams-0.6.0/Makefile 2008-11-07 13:50:19.000000000 +0100 +@@ -77,8 +77,8 @@ clean: + @rm -rf doc TODO + + install: +- @install -d $(INSTALL_PREFIX)/include/pstreams +- @install -v -m0644 pstream.h $(INSTALL_PREFIX)/include/pstreams ++ @install -d $(DESTDIR)$(INSTALL_PREFIX)/include/pstreams ++ @install -p -v -m0644 pstream.h $(DESTDIR)$(INSTALL_PREFIX)/include/pstreams + + .PHONY: TODO test ChangeLog + diff --git a/pstreams-devel.spec b/pstreams-devel.spec new file mode 100644 index 0000000..5c4c413 --- /dev/null +++ b/pstreams-devel.spec @@ -0,0 +1,61 @@ +%define packagename pstreams + +Name: pstreams-devel +Version: 0.6.0 +Release: 6%{?dist} +Summary: POSIX Process Control in C++ + +Group: Development/Libraries +License: LGPLv3+ +URL: http://%{packagename}.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{packagename}/%{packagename}-%{version}.tar.gz +# Submitted patch upstream - Till Mass +# http://sourceforge.net/tracker2/?func=detail&atid=453894&aid=2234202&group_id=48695 +Patch: pstreams-0.6.0-destdir_timestamp.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: doxygen +BuildArch: noarch + +%description +PStreams class is like a C++ wrapper for the POSIX.2 functions +popen(3) and pclose(3), using C++ iostreams instead of C's stdio +library. + +%prep +%setup -q -n %{packagename}-%{version} +%patch -p1 -b .destdir_timestamp + +%build +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install INSTALL_PREFIX=$RPM_BUILD_ROOT/usr + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc doc/html COPYING.LIB README AUTHORS ChangeLog +%{_includedir}/pstreams + +%changelog +* Fri Nov 07 2008 Rakesh Pandit 0.6.0-6 +- timestamp patch (Till Mass) + +* Fri Nov 07 2008 Rakesh Pandit 0.6.0-5 +- saving timestamp using "install -p" + +* Fri Nov 07 2008 Rakesh Pandit 0.6.0-4 +- included docs, license and other missing files. + +* Fri Nov 07 2008 Rakesh Pandit 0.6.0-3 +- consistent use of macros - replaced %%{buildroot} with $RPM_BUILD_ROOT + +* Thu Nov 06 2008 Rakesh Pandit 0.6.0-2 +- Cleaned up buildrequire + +* Tue Nov 04 2008 Rakesh Pandit 0.6.0-1 +- initial package diff --git a/sources b/sources index e69de29..21a84ca 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a12c2793937c2ea1bee04827d7b2ca63 pstreams-0.6.0.tar.gz