File yast2-squid.spec of Package yast2-squid

#
# spec file for package yast2-squid (Version 2.17.10)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           yast2-squid
Version:        2.17.10
Release:        2
License:        GPL v2 only
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-squid-2.17.10.tar.bz2
Prefix:         /usr
Requires:       yast2
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools
BuildRequires:  boost-devel gcc-c++ yast2-core-devel yast2-testsuite
#BuildArchitectures:	noarch
Summary:        Configuration of squid

%description
Configuration of squid



Authors:
--------
    Daniel Fiser <dfiser@suse.cz>

%prep
%setup -n yast2-squid-2.17.10

%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    d=${f##*/}
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done
rm -rf %{buildroot}/%{_libdir}/YaST2/plugin/libpy2ag_squid.la

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/squid
%config /etc/sysconfig/SuSEfirewall2.d/services/squid
/usr/share/YaST2/include/squid/*
/usr/share/YaST2/clients/squid.ycp
/usr/share/YaST2/clients/squid_*.ycp
/usr/share/YaST2/modules/Squid.*
/usr/share/YaST2/modules/SquidACL.*
/usr/share/YaST2/modules/SquidErrorMessages.*
%{prefix}/share/applications/YaST2/squid.desktop
/usr/share/YaST2/schema/autoyast/rnc/squid.rnc
%{_libdir}/YaST2/plugin/libpy2ag_squid.so*
/usr/share/YaST2/scrconf/*.scr
%doc %{prefix}/share/doc/packages/yast2-squid
%changelog
* Mon Jan 12 2009 jsrain@suse.de
- marked one more missing text for translation (bnc #446808)
- 2.17.10
* Fri Jan 09 2009 jsrain@suse.de
- fixed language label (bnc #464712)
- 2.17.9
* Wed Dec 10 2008 jsrain@suse.cz
- added missing translation mark (bnc #456461)
- 2.17.8
* Mon Dec 08 2008 jsrain@suse.cz
- some more missing texts marked for translations (bnc #446814)
- 2.17.7
* Fri Dec 05 2008 jsrain@suse.cz
- add translations of squid error language names (bnc #447020)
- 2.17.6
* Thu Dec 04 2008 jsrain@suse.cz
- marked even more missing texts for translations (bnc #447014)
* Wed Nov 26 2008 jsrain@suse.cz
- marked more missing texts for translations (bnc #446809)
- 2.17.5
* Tue Nov 25 2008 jsrain@suse.cz
- marked missing texts for translations (bnc #446993)
- 2.17.4
* Mon Nov 03 2008 jsrain@suse.cz
- fixed button labels (bnc #440539)
- 2.17.3
* Fri Oct 24 2008 jsrain@suse.cz
- reduced package dependencies
- 2.17.2
* Tue Sep 30 2008 jsrain@suse.cz
- fixed writing the settings (bnc #421100)
- 2.17.1
* Fri Jun 06 2008 jsrain@suse.cz
- fixed several typos
- 2.17.0
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Fri Apr 11 2008 jsrain@suse.cz
- more texts fixes (bnc #377805)
* Wed Apr 02 2008 jsrain@suse.cz
- fixed some texts (bnc #373131, bnc #373103, bnc #373109)
* Fri Mar 21 2008 jsrain@suse.cz
- changed 'Accept' button to 'Finish' (fate #120373)
- 2.16.3
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
- 2.16.2
* Thu Jan 17 2008 jsrain@suse.cz
- fixed typo in error message (#352267)
- 2.16.1
* Fri Oct 19 2007 dfiser@suse.cz
- Fixed problem with OpenFirewallWidget. (It did not open port on
  firewall)
- Created new SCR agent for squid.conf file.
- v2.16.0
* Tue Sep 11 2007 dfiser@suse.cz
- Fixed bug in autoyast client (it did not write configuration to
  system).
- Changed appereance beacause of ncurses 80x25.
- v2.15.5
* Mon Sep 10 2007 dfiser@suse.cz
- Added possibility to open configured ports in firewall.
- Changed alignment and position of some widgets.
- v2.15.4
* Tue Sep 04 2007 dfiser@suse.cz
- Added .rnc schema file (bug #304267).
- Removed some checks of local system if module is running as
  autoyast client. In autoyast, Squid module is filled with default
  values. (bug #304264)
- v2.15.3
* Tue Aug 28 2007 dfiser@suse.cz
- Added checking of more input data (bug #304314).
- Changed workflow to DialogTree-based dialogs.
- Squid::StartService now uses Service::Restart instead of
  Service::Reload (bug #304278).
- Added possibility to enable/disable service (bug #304271).
- Read dialog now shows more than one stage.
- Added checking whether the squid package is installed (bug #304261).
- v2.15.2
* Fri Aug 17 2007 dfiser@suse.cz
- Layout improvement.
- Changed SquidErrorMessages module to use .target.dir agent +
  FileUtils module.
- v2.15.1
* Wed Aug 15 2007 dfiser@suse.cz
- initial version
- v2.15.0