Browse Source

vanessa_adt, vanessa_logger, vanessa_socket package update

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
aee8c92819
  1. 143
      SPECS/vanessa_adt.spec
  2. 154
      SPECS/vanessa_logger.spec
  3. 164
      SPECS/vanessa_socket.spec

143
SPECS/vanessa_adt.spec

@ -0,0 +1,143 @@ @@ -0,0 +1,143 @@
%global optflags -m64 -O3 -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -mquad-memory -mquad-memory-atomic -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -fPIC -fPIE

Name: vanessa_adt
Version: 0.0.9
Release: 2%{?dist}
Summary: Library of Abstract Data Types
URL: http://www.vergenet.net/linux/vanessa/
Group: Development/Libraries
License: LGPLv2+
Source0: http://www.vergenet.net/linux/vanessa/download/%{name}/%{version}/%{name}-%{version}.tar.gz
Requires: vanessa_logger >= 0.0.5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
BuildRequires: automake autoconf libtool vanessa_logger-devel >= 0.0.5


%description
Library of Abstract Data Types (ADTs) that may be useful. Includes queue,
dynamic array and key value ADT.


%package devel
Summary: Headers for development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: vanessa_logger-devel >= 0.0.5
%description devel
Headers required to develop against vanessa_adt.


%prep
%setup -q


%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
if [ -f configure.in ]; then
aclocal
libtoolize --force --copy
automake --add-missing
autoheader
autoconf
fi
%configure --disable-static
make %{?_smp_mflags}


%install
mkdir -p %{buildroot}/{etc,%{prefix}/{lib,bin,doc}}
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.*a


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%files
%{_libdir}/*.so.*
%doc README COPYING ChangeLog


%files devel
%{_libdir}/*.so
%{_includedir}/*.h


%changelog
* Wed Sep 17 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.9-1
- Update to version 0.0.9, prepare for epel7 (bz#1140910).
- Some spec cleanup.

* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon May 7 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-9
- Remove static libraries mention from description and summary (bz#817948).

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Tue Aug 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-6
- Add %%{?_smp_mflags}
- End Fedora review.

* Mon Aug 24 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-5
- Fedora Review started. Thanks to Andrew Colin Kissa.
- Historical ./configure with huge amount parameters replaced by %%configure macro.
- Removed unnecessary requires /sbin/ldconfig
- Removed the files README,COPYING from the devel package

* Sun Aug 23 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-4
- Fix typo in condition (confgure.in instead of configure.in) (thanks to Andrew Colin Kissa)
- Add --add-missing flag to automake command and put it before autoheader.

* Tue Aug 18 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-3
- Ressurect old http://hubbitus.net.ru/rpm/Fedora9/vanessa_adt/vanessa_adt-0.0.7-2.fc8.Hu.0.src.rpm
- Rename spec to classic %%{name}.spec.
- Remove Hu part from release.
- Strip some old comments and unneded commands/macroses.
- Replace $RPM_BUILD_ROOT by %%{buildroot}.
- Move %%doc README COPYING ChangeLog from devel to main package.
- Delete unversioned explicit provides: Provides: %%{name}-%%{version}
- Old BuildPrereq tag replaced by BuildRequires.
- Make setup quiet.
- Remove *.*a files in %%install.
- Add Requires(postun): /sbin/ldconfig, Requires(post): /sbin/ldconfig, and %%post/%%postun ldconfig invoke.
- Move %%{_libdir}/*.so into -devel.
- Add COPYING also in %%doc of -devel, README in all packages.
- In devel turn "Provides: %%{name}-devel-%%{version}" to "%%{name}-devel = %%{version}-%%{release}".
- Add --disable-static in configure options (with it .la file not produced).
- Licence changed to LGPLv2+ from just LGPL.

* Mon Dec 31 2007 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.0.7-2
- Replace Tag Copyright by License
- Change license to it abbriviation LGPL (was GNU Lesser General Public Licence)
- Reformat all with tabs
- Change BuildRoot: to correct (intead of hardcoded path): %%{_tmppath}/%%{name}-%%{version}-%%{release}-%%(%%{__id_u} -n)
- Delete (Comment out) %%define prefix /usr
- Change from Release: 1 to Release: 2%%{?dist}.Hu.0

* Fri Dec 14 2001 Horms <horms@verge.net.au>
Revamped configure to use %%{_libdir} and friends. This should be more
distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>

* Sat Sep 2 2000 Horms <horms@verge.net.au>
created for version 0.0.0

154
SPECS/vanessa_logger.spec

@ -0,0 +1,154 @@ @@ -0,0 +1,154 @@
Summary: Generic logging layer
Name: vanessa_logger
Version: 0.0.10
Release: 2%{?dist}
License: LGPLv2+
URL: http://www.vergenet.net/linux/vanessa/
Group: Development/Libraries
Source0: http://www.vergenet.net/linux/vanessa/download/vanessa_logger/%{version}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
BuildRequires: automake autoconf libtool

%description
Generic logging layer that may be used to log to one or more of syslog,
an open file handle or a file name. Though due to limitations in the
implementation of syslog opening multiple syslog loggers doesn't makes
sense. Includes the ability to limit which messages will be logged based
on priorities.

# As subpackages defined -devel subpackage also must be explicit.
%package devel
Summary: Headers for development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

%description devel
Headers required to develop against vanessa_logger.

%package sample
Summary: Example programme that demonstrates vanessa_logger
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description sample
Sample programme with source that demonstrates various features of
vanessa_logger.


%prep
%setup -q

%build

# I am providing my own configure macro replacement. Hopefully this
# will result in fewer portability problems than using the one supplied
# by various vendours. I fear that I hope in vein.
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
if [ -f configure.in ]; then
aclocal
libtoolize --force --copy
automake --add-missing
autoheader
autoconf
fi
%configure --disable-static

make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}/doc
make DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_libdir}/*.*a

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc README COPYING ChangeLog

%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/vanessa-logger.pc
%doc COPYING README

%files sample
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/vanessa_logger_sample.*
%doc sample/*.c sample/*.h README

%changelog
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Mon Aug 6 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-1
- Update to 0.0.10

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon May 7 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.8-8
- Remove static libraries mention from description and summary (bz#817949).

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sun Dec 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.8-5
- New version 0.0.8

* Mon Aug 24 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-4
- Historical ./configure with huge amount parameters replaced by %%configure macro.
- Removed unnecessary requires /sbin/ldconfig
- Removed the files README,COPYING from the devel package

* Sun Aug 23 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-3
- Fix typo in condition (confgure.in instead of configure.in) (thanks to Andrew Colin Kissa)
- vanessa_logger-sample depend on vanessa_logger not on vanessa_logger-devel (thanks to Andrew Colin Kissa)
- Add --add-missing flag to automake command and put it before autoheader.

* Tue Aug 18 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-2
- Ressurect old http://hubbitus.net.ru/rpm/Fedora9/vanessa_logger/vanessa_logger-0.0.6-1.fc8.Hu.1.src.rpm.
- New version 0.0.7
- Rename spec to classic %%{name}.spec.
- Remove Hu part from release.
- Strip some old comments and unneded commands/macroses.
- Replace $RPM_BUILD_ROOT by %%{buildroot}.
- Move %%doc README COPYING ChangeLog from devel to main package.
- Old BuildPrereq tag replaced by BuildRequires.
- Make setup quiet.
- Adopt patch to new version, and name accordingly: vanessa_logger-0.0.7.error:label_at_end_of_compound_statement.patch.
- Remove *.*a files in %%install.
- License changed to LGPLv2+ from just LGPL according to README.
- Add Requires(postun): /sbin/ldconfig, Requires(post): /sbin/ldconfig, and %%post/%%postun ldconfig invoke.
- Move %%{_libdir}/*.so into -devel.
- Add COPYING also in %%doc of -devel, README in all packages.
- Add --disable-static in configure options (with it .la file not produced).

* Mon Dec 31 2007 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.0.6-1
- Replace Tag Copyright by License
- Reformat all with tabs
- Change BuildRoot: to correct (intead of hardcoded path): %%{_tmppath}/%%{name}-%%{version}-%%{release}-%%(%%{__id_u} -n)
- Delete (Comment out) %%define prefix /usr
- Change from Release: 1 to Release: %%{rel}%%{?dist}.Hu.0

* Fri Dec 14 2001 Horms <horms@verge.net.au>
Revamped configure to use %%{_libdir} and friends. This should be more
distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
* Thu Apr 26 2001 Horms <horms@verge.net.au>
Updated to "work" with Red Hat 7
* Sat Sep 15 2000 Horms <horms@verge.net.au>
created for version 0.0.0

164
SPECS/vanessa_socket.spec

@ -0,0 +1,164 @@ @@ -0,0 +1,164 @@
Summary: Simplify TCP/IP socket operations
Name: vanessa_socket
Version: 0.0.12
Release: 3%{?dist}
License: LGPLv2+
URL: http://www.vergenet.net/linux/vanessa/
Group: System Environment/Libraries
Source0: http://www.vergenet.net/linux/vanessa/download/%{name}/%{version}/%{name}-%{version}.tar.bz2
Requires: vanessa_logger >= 0.0.8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
BuildRequires: automake autoconf libtool vanessa_logger-devel >= 0.0.8

%description
Library to simplify TCP/IP socket operations. Includes code to
open a socket to a server as a client, to listen on socket for
clients as a server and to pipe information between sockets.

%package devel
Summary: Headers and static libraries for development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: vanessa_logger-devel >= 0.0.8

%description devel
Headers and static libraries required to develop against libvanessa_socket.

%package pipe
Summary: Trivial TCP/IP pipe build using libvanessa_adt
Group: Applications/System
License: GPLv2+
Requires: %{name} = %{version}-%{release}
# Epel5 have not popt-devel package
%if 0%{?fedora}%{?rhel} > 5
BuildRequires: popt-devel
%endif

%description pipe
A TCP/IP pipe is a user space programme that listens for TCP/IP connections on
port on the local host and when a client connects makes a connection to a
TCP/IP port, possibly on another host. Once both connections are established
data sent on one connection is relayed to the other, hence forming a
bi-directional pipe.

Uses include enabling connections to specific ports on hosts behind a
packet filter.

This code is intended primarily as an example of how many of the
features of libvanessa_socket work.

%prep
%setup -q

%build
%configure --disable-static

# Disable Rpath for x86_64
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}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_libdir}/*.*a


%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc README COPYING ChangeLog

%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

%files pipe
%defattr(-,root,root,-)
%{_bindir}/vanessa_socket_pipe
%{_mandir}/man1/vanessa_socket_pipe.*
%doc README vanessa_socket_pipe/COPYING

%changelog
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Mar 1 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.12-1
- Update to 0.0.12 version.

* Mon Jan 25 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-8
- Change License back to LGPLv2+, as clarified by Simon Horman - http://hg.vergenet.net/vanessa/vanessa_socket/rev/1e82bd57c239

* Mon Jan 25 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-7
- libvanessa_socket/vanessa_socket_daemon.c is GPLv2+, so all package License change to GPLv2+ from LGPLv2+ (Garrett Holmstrom)
- Cut off strange issue vith rpath appeared only in x86_64 (thanks to Garrett Holmstrom, Joshua Roys)
- Fix forgot version of vanessa_logger-devel >= 0.0.8 (thanks Michael Schwendt).

* Tue Jan 5 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-6
- Add %%{?_smp_mflags} for parallel build.
- Remove hand invoking autotuls, build with existing configure (thanks to Joshua Roys).
- Requires: vanessa_logger updated to version 0.0.8

* Sun Dec 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.10-5
- Update to 0.0.10 version.
- BR up to vanessa_logger-devel >= 0.0.8
- Add new files %%{_mandir}/man1/vanessa_gethostbyname.1.gz, %%{_bindir}/vanessa_gethostbyname

* Mon Aug 24 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-4
- Historical ./configure with huge amount parameters replaced by %%configure macro.
- Removed unnecessary requires /sbin/ldconfig
- Removed the files README,COPYING from the devel package

* Sun Aug 23 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-3
- Fix typo in condition (confgure.in instead of configure.in) (thanks to Andrew Colin Kissa)
- In -pipe sabpackage Requires: %%{name}-%%{version} replaced by more precise: %%{name} = %%{version}-%%{release}
- Add --add-missing flag to automake command and put it before autoheader.

* Tue Aug 18 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.0.7-2
- Ressurect old http://hubbitus.net.ru/rpm/Fedora9/vanessa_socket/vanessa_socket-0.0.7-1.fc8.Hu.1.src.rpm.
- Rename spec to classic %%{name}.spec.
- Remove Hu part from release.
- Strip some old comments and unneded commands/macroses.
- Replace $RPM_BUILD_ROOT by %%{buildroot}.
- Move %%doc README COPYING ChangeLog from devel to main package.
- Old BuildPrereq tag replaced by BuildRequires.
- Make setup quiet.
- Remove *.*a files in %%install.
- Move %%{_libdir}/*.so into -devel.
- Add Requires(postun): /sbin/ldconfig, Requires(post): /sbin/ldconfig, and %%post/%%postun ldconfig invoke.
- Add COPYING also in %%doc of -devel, README in all packages.
- Add --disable-static in configure options (with it .la file not produced).
- License changed to LGPLv2+ for main package and to GPLv2+.

* Mon Dec 31 2007 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.0.7-1
- Replace Tag Copyright by License
- Change BuildRoot: to correct (intead of hardcoded path): %%{_tmppath}/%%{name}-%%{version}-%%{release}-%%(%%{__id_u} -n)
- Reformat all with tabs
- Delete (Comment out) %%define prefix /usr
- Change from Release: 1 to Release: %%{rel}%%{?dist}.Hu.0
- For package pipe Change BuildRequires: popt to BuildRequires: popt-devel

* Fri Dec 14 2001 Horms <horms@verge.net.au>
Revamped configure to use %%{_libdir} and friends. This should be more
distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
* Fri Dec 14 2001 Horms <horms@verge.net.au>
Use %%configure and %%{_libdir} and friends. This should be more
distribution indepentant. With thanks to Scot W. Hetzel <scot@genroco.com>
* Mon Feb 12 2001 Horms <horms@verge.net.au>
Added manual page for vanessa_socket_pipe
* Sat Sep 2 2000 Horms <horms@verge.net.au>
created for version 0.0.0
Loading…
Cancel
Save