- 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 Thu Aug 15 07:36:40 UTC 2013 - lslezak@suse.cz

View File

@ -17,17 +17,17 @@
Name: yast2-ntp-client Name: yast2-ntp-client
Version: 3.0.1 Version: 3.1.0
Release: 0 Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ntp-client-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
BuildRequires: perl-XML-Writer BuildRequires: perl-XML-Writer
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: yast2 BuildRequires: yast2
BuildRequires: yast2-country-data BuildRequires: yast2-country-data
BuildRequires: yast2-devtools BuildRequires: yast2-devtools >= 3.0.6
BuildRequires: yast2-testsuite BuildRequires: yast2-testsuite
#SLPAPI.pm #SLPAPI.pm
# Hostname::CurrentDomain # Hostname::CurrentDomain
@ -56,53 +56,35 @@ This package contains development documentation for using the API
provided by yast2-ntp-client package. provided by yast2-ntp-client package.
%prep %prep
%setup -n yast2-ntp-client-%{version} %setup -n %{name}-%{version}
%build %build
%{_prefix}/bin/y2tool y2autoconf %yast_build
%{_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
%install %install
make install DESTDIR="$RPM_BUILD_ROOT" %yast_install
[ -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"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir /usr/share/YaST2/include/ntp-client %dir %{yast_yncludedir}/ntp-client
/usr/share/YaST2/include/ntp-client/* %{yast_yncludedir}/ntp-client/*
/usr/share/YaST2/clients/ntp-client.rb %{yast_clientdir}/ntp-client.rb
/usr/share/YaST2/clients/ntp-client_*.rb %{yast_clientdir}/ntp-client_*.rb
/usr/share/YaST2/scrconf/cfg_ntp.scr %{yast_scrconfdir}/cfg_ntp.scr
/usr/share/YaST2/scrconf/etc_ntp.scr %{yast_scrconfdir}/etc_ntp.scr
/usr/share/YaST2/modules/*.rb %{yast_moduledir}/*.rb
%{_prefix}/share/applications/YaST2/ntp-client.desktop %{yast_desktopdir}/ntp-client.desktop
/usr/share/YaST2/data/ntp_servers.yml %{yast_ydatadir}/ntp_servers.yml
/usr/share/YaST2/schema/autoyast/rnc/ntpclient.rnc %{yast_schemadir}/autoyast/rnc/ntpclient.rnc
%dir %{_prefix}/share/doc/packages/yast2-ntp-client %dir %{yast_docdir}
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/README %doc %{yast_docdir}/README
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/COPYING %doc %{yast_docdir}/COPYING
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/TODO %doc %{yast_docdir}/TODO
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/spec.txt %doc %{yast_docdir}/spec.txt
%files devel-doc %files devel-doc
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/autodocs %doc %{yast_docdir}/autodocs
%doc %{_prefix}/share/doc/packages/yast2-ntp-client/ntp.conf_agent.txt %doc %{yast_docdir}/ntp.conf_agent.txt
%changelog %changelog