Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Monitoring
dba-rrdtool-154-static
dba-rrdtool-154-static.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-rrdtool-154-static.spec of Package dba-rrdtool-154-static
# # spec file for package dba-rrdtool-148 # %define real_name rrdtool %define version 1.5.4 %define vers 154 %define prefix /DBA/%{real_name}/%{version} %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define maketest 0 %define dba_lua 0 %define dba_png 0 %define dba_pcre 0 %define dba_xml 0 Name: dba-%{real_name}-%{vers}-static Summary: Round Robin Database Tool to store and display time-series data 1.5.4 License: GPLv2+ Group: Productivity/Scientific/Math Version: %{version} Release: 1 Url: http://oss.oetiker.ch/rrdtool/ Source0: %{real_name}-%{version}.tar.gz Source1: %{real_name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x BuildRequires: freetype2-devel glib2-devel intltool libpng-devel pango-devel python-devel tcl-devel BuildRequires: autoconf automake libtool %if 0%{?rhel_version} != 700 BuildRequires: libart_lgpl-devel %endif %if 0%{?suse_version} >= 12 BuildRequires: groff %endif %if 0%{?sles_version} == 10 %define dba_xml 1 %define dba_pcre 1 %endif %if 0%{?rhel_version} == 505 || 0%{?centos_version} == 505 %define dba_xml 1 %define dba_pcre 1 %endif %if %{dba_png} BuildRequires: dba-libpng-1617-static %define pngpath /DBA/libpng/1.6.17 #!BuildIgnore: libpng-devel libpng %else BuildRequires: libpng-devel %endif %if %{dba_pcre} BuildRequires: dba-pcre-833-static %define pcrepath /DBA/pcre/8.33 %else BuildRequires: pcre-devel %endif %if %{dba_xml} BuildRequires: dba-libxml2-291-static # BuildRequires: libxml2-devel #!BuildIgnore: libxml2-devel %define xmlpath /DBA/libxml2/2.9.1 %else BuildRequires: libxml2-devel %endif %if 0%{?dba_lua} BuildRequires: dba-lua-515-static %define luapath /DBA/lua/5.1.5 %endif %if 0%{?rhel_version} != 406 BuildRequires: cairo-devel %endif %if 0%{?suse_version:1} BuildRequires: tcpd-devel %else BuildRequires: gcc-c++ tcp_wrappers %if 0%{?fedora_version} >= 10 || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 BuildRequires: tcp_wrappers-devel %endif %endif # to build perl BuildRequires: perl(ExtUtils::MakeMaker) %if 0%{?fedora_version} BuildRequires: perl-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: gettext-tools %else BuildRequires: gettext %endif %if 0%{?rhel_version} < 600 BuildRequires: ruby-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %prep %setup -q -n %{real_name}-%{version} %description A tool to log and analyze data gathered from all kinds of data sources. The data analysis part of RRDtool is based on the ability to quickly generate graphical representations of the data values collected over a definable time period. %build %if 0%{?dba_lua} export LUA_PATH=%{luapath} export CFLAGS="$CFLAGS -I$LUA_PATH/include" export LDFLAGS="$LDFLAGS -L$LUA_PATH/lib" %endif %if %{dba_pcre} export CFLAGS="$CFLAGS -I%{pcrepath}/include" export LDFLAGS="$LDFLAGS -L%{pcrepath}/lib -lpcre" %endif %if %{dba_png} export CFLAGS="$CFLAGS -I%{pngpath}/include" export CPPFLAGS="$CPPFLAGS -I%{pngpath}/include" export LDFLAGS="$LDFLAGS -L%{pngpath}/lib" %endif %if %{dba_xml} export CFLAGS="$CFLAGS -I%{xmlpath}/include" export CPPFLAGS="$CPPFLAGS -I%{xmlpath}/include" export LDFLAGS="$LDFLAGS -L%{xmlpath}/lib" %endif ./configure \ --prefix=%{prefix} \ --enable-static --with-pic --disable-shared \ %if 0%{?dba_lua} --enable-lua \ %endif %if %{dba_xml} --with-libxml2-prefix=%{xmlpath} \ %endif --with-tcllib=%{_libdir} \ --with-tcllib=%{_libdir} \ --with-gnu-ld \ --disable-rpath \ --with-rrd-default-font="monospace" make %{?jobs:-j %jobs} V=1 %check %if %maketest make check %endif %install # prevent rpath problem on suse export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix}/doc #eval `perl -V:installarchlib` make DESTDIR=$RPM_BUILD_ROOT install # install correctly perl modules pushd bindings/perl-piped perl Makefile.PL INSTALLDIRS=vendor popd # pushd bindings/perl-shared # perl Makefile.PL # # make DESTDIR=$RPM_BUILD_ROOT install_vendor # make DESTDIR=$RPM_BUILD_ROOT install # popd make find "%{buildroot}" -type f -name '*.la' -exec %__rm {} \; %if %{_lib}==lib64 %{__mkdir_p} %{buildroot}%{prefix}/lib cp -a %{buildroot}%{prefix}/lib64/* %{buildroot}%{prefix}/lib/ %{__rm} -rfv %{buildroot}/%{prefix}/lib64 %endif # perl modules find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {} # %{__mkdir_p} %{buildroot}%{prefix}/perl # mv %{buildroot}%{perl_vendorlib}/RRDp.pm %{buildroot}%{prefix}/perl/ # mv %{buildroot}%{perl_vendorarch}/RRDs.pm %{buildroot}%{prefix}/perl/ # mv %{buildroot}%{perl_vendorarch}/auto %{buildroot}%{prefix}/perl/ # %{__mkdir_p} %{buildroot}%{prefix}/man # cp -a %{buildroot}%{_mandir}/man* %{buildroot}%{prefix}/man/ %{__rm} -rfv %{buildroot}%{perl_vendorlib} %{buildroot}%{perl_vendorarch} %{buildroot}%{_mandir} %{buildroot}/usr/lib/systemd %{__mkdir_p} %{buildroot}%{prefix}/ruby find %{buildroot}/usr -name "*.so" -print0 |xargs -0 -i mv {} -t %{buildroot}%{prefix}/ruby # documentation install -m 644 CHANGES CONTRIBUTORS COPYRIGHT TODO $RPM_BUILD_ROOT/%{prefix}/doc # remove empty directories find %{buildroot}%{prefix} -type d -depth -exec rmdir {} \; 2>/dev/null %post # add pc file to pkgconfig directory if [ -d %{_libdir}/pkgconfig ]; then cd %{_libdir}/pkgconfig if [ -e librrd.pc ]; then %{__rm} -f librrd.pc fi %{__ln_s} -f %{prefix}/lib/pkgconfig/librrd.pc . fi %files %defattr(-,root,root) %dir %{prefix} %{prefix}/* %changelog * Wed Sep 9 2015 Holger Manthey <holger.manthey@bertelsmann.de> - fix build for several distros * Tue Sep 8 2015 Holger Manthey <holger.manthey@bertelsmann.de> - inital version
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