Use cmake macros

This commit is contained in:
Pavel Zhukov 2017-08-07 17:48:06 +02:00
parent 3813310ea7
commit b01ce74f72

View File

@ -1,6 +1,6 @@
Name: sdcv
Version: 0.5.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Console version of StarDict program
Group: Applications/System
License: GPLv2+
@ -24,19 +24,16 @@ SDCV - простая, консольная утилита работы
%setup -q
%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ..
%cmake
make %{?_smp_mflags}
make lang %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%find_lang %{name}
%files -f build/%{name}.lang
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc NEWS LICENSE AUTHORS README.org
%{_bindir}/%{name}
@ -44,6 +41,9 @@ make install DESTDIR=%{buildroot}
%{_mandir}/uk/man1/sdcv.1.gz
%changelog
* Mon Aug 7 2017 Pavel Zhukov <pzhukov@redhat.com> - 0.5.1-3
- Proper use of cmake macros
* Mon Aug 7 2017 Pavel Zhukov <pzhukov@redhat.com> - 0.5.1-1
- New release 0.5.1