Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:derselbst
poco
poco.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poco.spec of Package poco
# # spec file for package poco # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: poco Version: 1.4.3p1 Release: 0.0 %define soname 12 Summary: Modern C++ Framework for Network-based Applications License: BSD-3-Clause Group: System/Libraries Url: http://pocoproject.org # http://prdownloads.sourceforge.net/poco/poco-%{version}-all.tar.gz Source: poco-%{version}-all.tar.bz2 # PATCH-FIX-OPENSUSE poco-poco_libdir.patch Patch1: poco-poco_libdir.patch # PATCH-FIX-OPENSUSE poco-disable_rpath.patch Patch2: poco-disable_rpath.patch BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: libexpat-devel BuildRequires: libmysqlclient-devel BuildRequires: make BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRequires: pkgconfig BuildRequires: sqlite3-devel BuildRequires: unixODBC-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n poco-devel Summary: Modern C++ Framework for Network-based Applications Group: Development/Libraries/C and C++ Requires: libexpat-devel Requires: libmysqlclient-devel Requires: libstdc++-devel Requires: openssl-devel Requires: pcre-devel Requires: sqlite3-devel Requires: unixODBC-devel Requires: zlib-devel Provides: libpoco-devel = %{version} %description -n poco-devel Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n poco-cpspc Summary: POCO C++ Server Page Compiler Group: Development/Tools/Doc Generators %description -n poco-cpspc This program compiles web pages containing embedded C++ code into a C++ class that can be used with the HTTP server from the POCO Net library. %package -n libPocoCrypto%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-crypto = %{version} %description -n libPocoCrypto%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoData%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-data = %{version} %description -n libPocoData%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoDataMySQL%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-datamysql = %{version} %description -n libPocoDataMySQL%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and %package -n libPocoDataODBC%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-dataodbc = %{version} %description -n libPocoDataODBC%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and %package -n libPocoDataSQLite%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-datasqlite = %{version} %description -n libPocoDataSQLite%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and %package -n libPocoFoundation%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-foundation = %{version} %description -n libPocoFoundation%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoNet%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-net = %{version} %description -n libPocoNet%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoNetSSL%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-netssl = %{version} %description -n libPocoNetSSL%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoUtil%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-util = %{version} %description -n libPocoUtil%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoXML%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-xml = %{version} %description -n libPocoXML%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %package -n libPocoZip%{soname} Summary: Modern C++ Framework for Network-based Applications Group: System/Libraries Provides: poco-zip = %{version} %description -n libPocoZip%{soname} Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems. %prep %setup -q -n "poco-%{version}-all" %patch1 -p1 %patch2 %build # not autoconf ./configure \ --config=Linux \ --prefix="%{_prefix}" \ --include-path="%{_includedir}" \ --library-path="%{_libdir}" \ --unbundled # ODBCLIBDIR must be patched in the Makefiles as it is # hard-coded to /usr/lib; passing it as a variable to # make doesn't work, weirdly enough find . -type f -name Makefile -exec \ perl -p -i -e 's|^(\s*ODBCLIBDIR\s*=\s*).+$|$1%{_libdir}|' {} \; # Release builds are always stripped, which we can avoid # by setting STRIP to something that has no effect, like # echo or touch # If we do not specify LINKMODE, it builds both the shared # and the static libraries, but we're only interested in # the shared libs # By forcing DEFAULT_TARGET to shared_release, we will only # build the release variant with shared libs -- if not, # it will build both the release and the debug variants, # which we don't need as we'll have the debug stripped off # and stored in the -debug packages CXXFLAGS="%{optflags} -DNDEBUG" # Have to use make -j1 in stead of make %{?_smp_mflags} due to memory usage # -worldcitizen # There is a empirically observed 1.5G RSS (x86_64), so yes, indeed. # -jengelh make -j1 \ CC="gcc" \ CXX="g++" \ STRIP="touch" \ RELEASEOPT_CC="$CXXFLAGS" \ RELEASEOPT_CXX="$CXXFLAGS" \ RELEASEOPT_LINK="$CXXFLAGS" \ LINKMODE=SHARED \ POCO_PREFIX="%{_prefix}" \ POCO_LIBDIR="%{_libdir}" \ DEFAULT_TARGET=shared_release %install make \ DESTDIR=%{buildroot} \ STRIP="touch" \ LINKMODE=SHARED \ POCO_PREFIX="%{_prefix}" \ POCO_LIBDIR="%{_libdir}" \ DEFAULT_TARGET=shared_release \ install %files -n libPocoCrypto%{soname} %defattr(-,root,root) %{_libdir}/libPocoCrypto.so.%{soname} %post -n libPocoCrypto%{soname} -p /sbin/ldconfig %postun -n libPocoCrypto%{soname} -p /sbin/ldconfig %files -n libPocoData%{soname} %defattr(-,root,root) %{_libdir}/libPocoData.so.%{soname} %post -n libPocoData%{soname} -p /sbin/ldconfig %postun -n libPocoData%{soname} -p /sbin/ldconfig %files -n libPocoDataMySQL%{soname} %defattr(-,root,root) %{_libdir}/libPocoDataMySQL.so.%{soname} %post -n libPocoDataMySQL%{soname} -p /sbin/ldconfig %postun -n libPocoDataMySQL%{soname} -p /sbin/ldconfig %files -n libPocoDataODBC%{soname} %defattr(-,root,root) %{_libdir}/libPocoDataODBC.so.%{soname} %post -n libPocoDataODBC%{soname} -p /sbin/ldconfig %postun -n libPocoDataODBC%{soname} -p /sbin/ldconfig %files -n libPocoDataSQLite%{soname} %defattr(-,root,root) %{_libdir}/libPocoDataSQLite.so.%{soname} %post -n libPocoDataSQLite%{soname} -p /sbin/ldconfig %postun -n libPocoDataSQLite%{soname} -p /sbin/ldconfig %files -n libPocoFoundation%{soname} %defattr(-,root,root) %{_libdir}/libPocoFoundation.so.%{soname} %post -n libPocoFoundation%{soname} -p /sbin/ldconfig %postun -n libPocoFoundation%{soname} -p /sbin/ldconfig %files -n libPocoNet%{soname} %defattr(-,root,root) %{_libdir}/libPocoNet.so.%{soname} %post -n libPocoNet%{soname} -p /sbin/ldconfig %postun -n libPocoNet%{soname} -p /sbin/ldconfig %files -n libPocoNetSSL%{soname} %defattr(-,root,root) %{_libdir}/libPocoNetSSL.so.%{soname} %post -n libPocoNetSSL%{soname} -p /sbin/ldconfig %postun -n libPocoNetSSL%{soname} -p /sbin/ldconfig %files -n libPocoUtil%{soname} %defattr(-,root,root) %{_libdir}/libPocoUtil.so.%{soname} %post -n libPocoUtil%{soname} -p /sbin/ldconfig %postun -n libPocoUtil%{soname} -p /sbin/ldconfig %files -n libPocoXML%{soname} %defattr(-,root,root) %{_libdir}/libPocoXML.so.%{soname} %post -n libPocoXML%{soname} -p /sbin/ldconfig %postun -n libPocoXML%{soname} -p /sbin/ldconfig %files -n libPocoZip%{soname} %defattr(-,root,root) %{_libdir}/libPocoZip.so.%{soname} %post -n libPocoZip%{soname} -p /sbin/ldconfig %postun -n libPocoZip%{soname} -p /sbin/ldconfig %files -n poco-devel %defattr(-,root,root) %doc CHANGELOG CONTRIBUTORS LICENSE NEWS README %{_includedir}/Poco %{_libdir}/libPoco*.so %files -n poco-cpspc %defattr(-,root,root) %{_bindir}/cpspc %{_bindir}/f2cpsp %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor