Blame SPECS/libwvstreams.spec

b27f3e
Name: libwvstreams
b27f3e
Version: 4.6.1
3548f6
Release: 12%{?dist}
b27f3e
Summary: WvStreams is a network programming library written in C++
b27f3e
Source: http://wvstreams.googlecode.com/files/wvstreams-%{version}.tar.gz
b27f3e
#fixed multilib issue (bug #192717)
b27f3e
Patch1: wvstreams-4.2.2-multilib.patch
b27f3e
#install-xplc target was missing
b27f3e
Patch2: wvstreams-4.5-noxplctarget.patch
b27f3e
#Fix parallel build (#226061)
b27f3e
Patch3: wvstreams-4.6.1-make.patch
b27f3e
#sys/stat.h is missing some files in rawhide build
b27f3e
Patch4: wvstreams-4.6.1-statinclude.patch
b27f3e
#const X509V3_EXT_METHOD * -> X509V3_EXT_METHOD * conversion not allowed
b27f3e
#by rawhide gcc
b27f3e
Patch5: wvstreams-4.6.1-gcc.patch
b27f3e
# fix missing unistd.h header for gcc 4.7
b27f3e
Patch6: wvstreams-4.6.1-gcc47.patch
b27f3e
Patch7: wvstreams-4.6.1-magic.patch
3548f6
Patch8: wvstreams-4.6.1-fix-stack-size.patch
b27f3e
URL: https://code.google.com/p/wvstreams/
b27f3e
Group: System Environment/Libraries
b27f3e
BuildRequires: openssl-devel, pkgconfig, zlib-devel, readline-devel, dbus-devel
b27f3e
License: LGPLv2+
b27f3e
b27f3e
%description
b27f3e
WvStreams aims to be an efficient, secure, and easy-to-use library for
b27f3e
doing network applications development.
b27f3e
b27f3e
%package devel
b27f3e
Summary: Development files for WvStreams
b27f3e
Group: Development/Libraries
b27f3e
Requires: %{name} = %{version}-%{release}
b27f3e
b27f3e
%description devel
b27f3e
WvStreams aims to be an efficient, secure, and easy-to-use library for
b27f3e
doing network applications development.  This package contains the files
b27f3e
needed for developing applications which use WvStreams.
b27f3e
b27f3e
%package static
b27f3e
Summary: Static libraries files for WvStreams
b27f3e
Group: Development/Libraries
b27f3e
b27f3e
%description static
b27f3e
WvStreams aims to be an efficient, secure, and easy-to-use library for
b27f3e
doing network applications development. This package contains static libraries.
b27f3e
b27f3e
%prep
b27f3e
%setup -q -n wvstreams-%{version}
b27f3e
%patch1 -p1 -b .multilib
b27f3e
%patch2 -p1 -b .xplctarget
b27f3e
%patch3 -p1 -b .make
b27f3e
%patch4 -p1 -b .statinclude
b27f3e
%patch5 -p1 -b .gcc
b27f3e
%patch6 -p1 -b .gcc47
b27f3e
%patch7 -p1 -b .magic
3548f6
%patch8 -p1 -b .fix-stack-size
b27f3e
b27f3e
%build
b27f3e
b27f3e
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fpermissive -fno-strict-aliasing -fno-tree-dce -fno-optimize-sibling-calls"
b27f3e
export CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
b27f3e
b27f3e
#  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
b27f3e
#  --with-dbus             DBUS
b27f3e
#  --with-openssl          OpenSSL >= 0.9.7 (required)
b27f3e
#  --with-pam              PAM
b27f3e
#  --with-tcl              Tcl
b27f3e
#  --with-qt               Qt
b27f3e
#  --with-zlib             zlib (required)
b27f3e
touch configure
b27f3e
%configure --with-dbus=yes \
b27f3e
           --with-pam \
b27f3e
           --with-openssl \
b27f3e
           --without-tcl \
b27f3e
           --with-qt=no \
b27f3e
           --disable-optimization # -O2 will be turned on because of RPM_OPT_FLAFS,
b27f3e
                                  # but it won't be appended at the end of CFLAGS
b27f3e
b27f3e
#upstream is working with .a lib, so hardcoding path to libdbus-1.so to prevent build failures
b27f3e
make %{?_smp_mflags}
b27f3e
b27f3e
%install
b27f3e
make install DESTDIR=$RPM_BUILD_ROOT
b27f3e
chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so.*
b27f3e
rm -fr $RPM_BUILD_ROOT/usr/bin
b27f3e
b27f3e
pushd $RPM_BUILD_ROOT
b27f3e
rm -f \
b27f3e
   ./etc/uniconf.conf \
b27f3e
   .%{_bindir}/uni \
b27f3e
   .%{_libdir}/pkgconfig/libwvqt.pc \
b27f3e
   .%{_sbindir}/uniconfd \
b27f3e
   .%{_mandir}/man8/uni.8* \
b27f3e
   .%{_mandir}/man8/uniconfd.8* \
b27f3e
   .%{_var}/lib/uniconf/uniconfd.ini
b27f3e
popd
b27f3e
b27f3e
%files
b27f3e
%defattr(-,root,root,-)
b27f3e
%doc LICENSE README
b27f3e
%{_libdir}/*.so.*
b27f3e
b27f3e
%files devel
b27f3e
%defattr(-,root,root,-)
b27f3e
%{_includedir}/wvstreams
b27f3e
%{_libdir}/*.so
b27f3e
%{_libdir}/valgrind/*.supp
b27f3e
%{_libdir}/pkgconfig/*.pc
b27f3e
b27f3e
%files static
b27f3e
%defattr(-,root,root,-)
b27f3e
%{_libdir}/*.a
b27f3e
b27f3e
%post -p /sbin/ldconfig
b27f3e
%postun -p /sbin/ldconfig
b27f3e
b27f3e
%changelog
3548f6
* Tue Mar  3 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 4.6.1-12
3548f6
- Fixed stack size
3548f6
  Resolves: rhbz#1551334
3548f6
600f49
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.6.1-11
600f49
- Mass rebuild 2014-01-24
600f49
600f49
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.6.1-10
600f49
- Mass rebuild 2013-12-27
600f49
b27f3e
* Tue Jul 09 2013 Michal Sekletar <msekleta@redhat.com> - 4.6.1-9
b27f3e
- put static libraries into subpackage
b27f3e
- disable strict aliasing optimizations to prevent warnings and possible crashes
b27f3e
- fix changelog dates
b27f3e
b27f3e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.1-8
b27f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b27f3e
b27f3e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.1-7
b27f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b27f3e
b27f3e
* Thu Jun 14 2012 Michal Sekletar <msekleta@redhat.com> - 4.6.1-6
b27f3e
- Disabled optimizations which caused crash related to #812651
b27f3e
b27f3e
* Mon Jun 04 2012 Michal Sekletar <msekleta@redhat.com> - 4.6.1-5
b27f3e
- Fix crashes caused by compiler optimizations, #812651
b27f3e
b27f3e
* Thu Jan 05 2012 Jan Synáček <jsynacek@redhat.com> - 4.6.1-4
b27f3e
- Fix missing unistd.h header for gcc 4.7
b27f3e
b27f3e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.1-3
b27f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b27f3e
b27f3e
* Tue Jan 12 2010 Ondrej Vasik <ovasik@redhat.com> - 4.6.1-2
b27f3e
- Merge review changes: added few comments, do not use "-fpermissive"
b27f3e
  for COPTS, use parallel build (#226061)
b27f3e
b27f3e
* Thu Nov 12 2009 Ondrej Vasik <ovasik@redhat.com> - 4.6.1-1
b27f3e
- new upstream release 4.6.1
b27f3e
b27f3e
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 4.6-5
b27f3e
- rebuilt with new openssl
b27f3e
b27f3e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6-4
b27f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b27f3e
b27f3e
* Sat Jun 27 2009 Ondrej Vasik <ovasik@redhat.com> - 4.6-3
b27f3e
- another fix for build with dbus(#479144)
b27f3e
b27f3e
* Sat Jun 27 2009 Ondrej Vasik <ovasik@redhat.com> - 4.6-2
b27f3e
- add build requires for dbus-devel, build with libdbus-1.so
b27f3e
  (#479144)
b27f3e
- fix multilib issue with wvautoconf.h(#508418)
b27f3e
b27f3e
* Thu Jun 11 2009 Ondrej Vasik <ovasik@redhat.com> - 4.6-1
b27f3e
- new upstream release with dynamically linked dbus(#479144)
b27f3e
b27f3e
* Fri Feb 27 2009 Ondrej Vasik <ovasik@redhat.com> - 4.5.1-5
b27f3e
- fix rebuild failure with gcc 4.4
b27f3e
b27f3e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.1-4
b27f3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b27f3e
b27f3e
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 4.5.1-3
b27f3e
- rebuild with new openssl
b27f3e
b27f3e
* Fri Jan 09 2009 Ondrej Vasik <ovasik@redhat.com> - 4.5.1-2
b27f3e
- do not remove libwvdbus.pc (#479144)
b27f3e
b27f3e
* Thu Jan 08 2009 Ondrej Vasik <ovasik@redhat.com> - 4.5.1-1
b27f3e
- new upstream release 4.5.1 , removed applied patches
b27f3e
- activate --with-dbus(#479144)
b27f3e
b27f3e
* Fri Nov 21 2008 Ondrej Vasik <ovasik@redhat.com> - 4.5-1
b27f3e
- new upstream release
b27f3e
- fixed issue with missing install-xplc target and std::sort
b27f3e
  missing gcc-4.3 error
b27f3e
- updated optional configure options list in spec file
b27f3e
b27f3e
* Fri Aug 29 2008 Ondrej Vasik <ovasik@redhat.com> - 4.4.1-5
b27f3e
- patch fuzz clean up
b27f3e
b27f3e
* Tue Feb 12 2008 Ondrej Vasik <ovasik@redhat.com> - 4.4.1-4
b27f3e
- gcc43 rebuild, climits instead limits.h usage
b27f3e
b27f3e
* Wed Dec 05 2007 Ondrej Vasik <ovasik@redhat.com> - 4.4.1-3
b27f3e
- rebuilt because of new OpenSSL
b27f3e
b27f3e
* Wed Nov 28 2007 Ondrej Vasik <ovasik@redhat.com> - 4.4.1-2
b27f3e
- no use of obsolete sa_restorer(#402531- by Oliver Falk)
b27f3e
b27f3e
* Mon Oct 22 2007 Ondrej Vasik <ovasik@redhat.com> - 4.4.1-1
b27f3e
- version 4.4.1
b27f3e
b27f3e
* Fri Aug 17 2007 Harald Hoyer <harald@rawhide.home> - 4.4-1
b27f3e
- version 4.4
b27f3e
- changed license tag to LGPLv2+
b27f3e
b27f3e
* Thu Jun 28 2007 Harald Hoyer <harald@redhat.com> - 4.3-2
b27f3e
- added static libs, esp. xplc-cxx
b27f3e
b27f3e
* Thu Jun 28 2007 Harald Hoyer <harald@redhat.com> - 4.3-1
b27f3e
- version 4.3
b27f3e
b27f3e
* Wed Apr 18 2007 Harald Hoyer <harald@redhat.com> - 4.2.2-4
b27f3e
- specfile review
b27f3e
b27f3e
* Wed Jan 24 2007 Harald Hoyer <harald@redhat.com> - 4.2.2-3
b27f3e
- fixed code for new g++ version
b27f3e
b27f3e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.2.2-2.1
b27f3e
- rebuild
b27f3e
b27f3e
* Fri Jun 02 2006 Harald Hoyer <harald@redhat.com> 4.2.2-2
b27f3e
- more corrections to multilib patch (bug #192717)
b27f3e
b27f3e
* Wed May 24 2006 Harald Hoyer <harald@redhat.com> 4.2.2-1
b27f3e
- version 4.2.2
b27f3e
- fixed multilib issue (bug #192717)
b27f3e
b27f3e
* Fri Mar 10 2006 Bill Nottingham <notting@redhat.com> - 4.2.1-2
b27f3e
- rebuild for ppc TLS issue (#184446)
b27f3e
b27f3e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.2.1-1.2
b27f3e
- bump again for double-long bug on ppc(64)
b27f3e
b27f3e
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.2.1-1.1
b27f3e
- rebuilt for new gcc4.1 snapshot and glibc changes
b27f3e
b27f3e
* Mon Dec 19 2005 Harald Hoyer <harald@redhat.com> 4.2.1-1
b27f3e
- version 4.2.1
b27f3e
b27f3e
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Wed Nov  9 2005 Tomas Mraz <tmraz@redhat.com> 3.75.0-6
b27f3e
- rebuilt against new openssl
b27f3e
- the gcc4 patch shouldn't be used anymore
b27f3e
b27f3e
* Mon Mar 14 2005 Harald Hoyer <harald@redhat.com> 3.75.0-5
b27f3e
- gcc4 patch added
b27f3e
b27f3e
* Wed Mar  2 2005 Jindrich Novy <jnovy@redhat.com> 3.75.0-4
b27f3e
- rebuilt
b27f3e
b27f3e
* Wed Feb 09 2005 Harald Hoyer <harald@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Mon Jun 28 2004 Harald Hoyer <harald@redhat.com> 3.75.0-2
b27f3e
- added libwvstreams-3.75.0-stringbuf.patch (114996)
b27f3e
b27f3e
* Mon Jun 21 2004 Harald Hoyer <harald@redhat.com> 3.75.0-1
b27f3e
- version 3.75.0
b27f3e
b27f3e
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Fri Oct 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-12
b27f3e
- link libwvstreams shared libs against libcrypt, upon which they depend
b27f3e
b27f3e
* Mon Sep  8 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-11
b27f3e
- rebuild
b27f3e
b27f3e
* Mon Sep  8 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-10
b27f3e
- rebuild
b27f3e
b27f3e
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
b27f3e
- rebuilt
b27f3e
b27f3e
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-7
b27f3e
- rebuild
b27f3e
b27f3e
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
b27f3e
- correct an const/not-const type mismatch that breaks compilation with newer
b27f3e
  OpenSSL
b27f3e
- add flags from pkgconfig so that OpenSSL is always found
b27f3e
b27f3e
* Tue Sep 10 2002 Mike A. Harris <mharris@redhat.com> 3.70-6
b27f3e
- use FHS macros for multilib systems
b27f3e
b27f3e
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
b27f3e
- rebuilt with gcc-3.2 (we hope)
b27f3e
b27f3e
* Mon Jul 22 2002 Tim Powers <timp@redhat.com>
b27f3e
- rebuild using gcc-3.2-0.1
b27f3e
b27f3e
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
b27f3e
- automated rebuild
b27f3e
b27f3e
* Sun May 26 2002 Tim Powers <timp@redhat.com>
b27f3e
- automated rebuild
b27f3e
b27f3e
* Mon May 20 2002 Nalin Dahyabhai <nalin@redhat.com> 3.70-1
b27f3e
- patch to build with gcc 3.x
b27f3e
- build with -fPIC
b27f3e
b27f3e
* Wed Apr 10 2002 Nalin Dahyabhai <nalin@redhat.com>
b27f3e
- update to 3.70
b27f3e
b27f3e
* Wed Mar 27 2002 Nalin Dahyabhai <nalin@redhat.com> 3.69-1
b27f3e
- pull in from upstream tarball
b27f3e
b27f3e
* Wed Feb 27 2002 Nalin Dahyabhai <nalin@redhat.com>
b27f3e
- merge the main and -devel packages into one .spec file
b27f3e
- use globbing to shorten the file lists
b27f3e
- don't define name, version, and release as macros (RPM does this by default)
b27f3e
- use the License: tag instead of Copyright: (equivalent at the package level,
b27f3e
  but License: reflects the intent of the tag better)
b27f3e
- use a URL to point to the source of the source tarball
b27f3e
- add BuildRequires: openssl-devel (libwvcrypto uses libcrypto)
b27f3e
- move the buildroot to be under %%{_tmppath}, so that it can be moved by
b27f3e
  altering RPM's configuration
b27f3e
b27f3e
* Tue Jan 29 2002 Patrick Patterson <ppatters@nit.ca>
b27f3e
- Initial Release of WvStreams