- do not use *.spec.in template, use *.spec file with RPM macros

instead
- 3.1.0

OBS-URL: https://build.opensuse.org/package/show/YaST:Head/yast2-ntp-client?expand=0&rev=150
This commit is contained in:
ZYpp Developers 2013-10-08 12:49:09 +00:00 committed by Git OBS Bridge
parent ac35281d65
commit 3f97020464
4 changed files with 33 additions and 44 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d88a31938b2adea50332ad6487608421dd8eb99e5bb88b5413ee5f04094607ec
size 130913

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e346969e3e0a9ce217c3aa1f49e26f48f512aa0452acca82f77f3872055a535a
size 55742

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 19 12:09:02 UTC 2013 - lslezak@suse.cz
- do not use *.spec.in template, use *.spec file with RPM macros
instead
- 3.1.0
-------------------------------------------------------------------
Thu Aug 15 07:36:40 UTC 2013 - lslezak@suse.cz

View File

@ -17,17 +17,17 @@
Name: yast2-ntp-client
Version: 3.0.1
Version: 3.1.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ntp-client-%{version}.tar.bz2
Source0: %{name}-%{version}.tar.bz2
BuildRequires: perl-XML-Writer
BuildRequires: update-desktop-files
BuildRequires: yast2
BuildRequires: yast2-country-data
BuildRequires: yast2-devtools
BuildRequires: yast2-devtools >= 3.0.6
BuildRequires: yast2-testsuite
#SLPAPI.pm
# Hostname::CurrentDomain
@ -56,53 +56,35 @@ This package contains development documentation for using the API
provided by yast2-ntp-client package.
%prep
%setup -n yast2-ntp-client-%{version}
%setup -n %{name}-%{version}
%build
%{_prefix}/bin/y2tool y2autoconf
%{_prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
./configure --libdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir}
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
# so that RPM_OPT_FLAGS check works
make %{?jobs:-j%jobs} V=1
%yast_build
%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
%clean
rm -rf "$RPM_BUILD_ROOT"
%yast_install
%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/ntp-client
/usr/share/YaST2/include/ntp-client/*
/usr/share/YaST2/clients/ntp-client.rb
/usr/share/YaST2/clients/ntp-client_*.rb
/usr/share/YaST2/scrconf/cfg_ntp.scr
/usr/share/YaST2/scrconf/etc_ntp.scr
/usr/share/YaST2/modules/*.rb
%{_prefix}/share/applications/YaST2/ntp-client.desktop
/usr/share/YaST2/data/ntp_servers.yml
/usr/share/YaST2/schema/autoyast/rnc/ntpclient.rnc
%dir %{yast_yncludedir}/ntp-client
%{yast_yncludedir}/ntp-client/*
%{yast_clientdir}/ntp-client.rb
%{yast_clientdir}/ntp-client_*.rb
%{yast_scrconfdir}/cfg_ntp.scr
%{yast_scrconfdir}/etc_ntp.scr
%{yast_moduledir}/*.rb
%{yast_desktopdir}/ntp-client.desktop
%{yast_ydatadir}/ntp_servers.yml
%{yast_schemadir}/autoyast/rnc/ntpclient.rnc
%dir %{_prefix}/share/doc/packages/yast2-ntp-client
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/README
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/COPYING
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/TODO
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/spec.txt
%dir %{yast_docdir}
%doc %{yast_docdir}/README
%doc %{yast_docdir}/COPYING
%doc %{yast_docdir}/TODO
%doc %{yast_docdir}/spec.txt
%files devel-doc
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/autodocs
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/ntp.conf_agent.txt
%doc %{yast_docdir}/autodocs
%doc %{yast_docdir}/ntp.conf_agent.txt
%changelog