Use noreplace for config file

epel9
Till Maas 12 years ago
parent 6d6272bee6
commit 218cfb1c6d

1
.gitignore vendored

@ -0,0 +1 @@
/youtube-dl-2012.09.27.tar.gz

@ -0,0 +1 @@
961f185aef9e38ec8f8403720bddfb8e youtube-dl-2012.09.27.tar.gz

File diff suppressed because it is too large Load Diff

@ -1,16 +1,16 @@
Name: youtube-dl Name: youtube-dl
Version: 2012.02.27 Version: 2012.09.27
Release: 2%{?dist} Release: 2%{?dist}
Summary: Small command-line program to download videos from YouTube Summary: Small command-line program to download videos from YouTube
Summary(pl): Tekstowy program do pobierania filmów z youtube.com Summary(pl): Tekstowy program do pobierania filmów z youtube.com
Group: Applications/Multimedia Group: Applications/Multimedia
License: Public Domain License: Public Domain
URL: http://rg3.github.com/youtube-dl/ URL: http://rg3.github.com/youtube-dl/
Source0: https://github.com/rg3/youtube-dl/raw/%{version}/youtube-dl Source0: https://github.com/rg3/%{name}/tarball/%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.conf Source1: %{name}.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
Requires: python >= 2.4 Requires: python >= 2.6
%description %description
Small command-line program to download videos from YouTube. Small command-line program to download videos from YouTube.
@ -20,15 +20,18 @@ youtube-dl to mały tekstowy program służący do pobierania filmów z
youtube.com. youtube.com.
%prep %prep
#nothing to prep %setup -cqTn %{name}-%{version}
gzip -dc %{SOURCE0} | tar --strip-components=1 -xvvf -
rm youtube-dl{,.exe}
%build %build
#nothing to build make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sysconfdir} mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} $RPM_BUILD_ROOT%{_sysconfdir}
install -p -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir} install -p -m 755 youtube-dl $RPM_BUILD_ROOT%{_bindir}
install -p -m 644 README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
%clean %clean
@ -37,9 +40,17 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/%{name} %{_bindir}/%{name}
%config %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}.conf
%doc %{_docdir}/%{name}-%{version}/README.md
%changelog %changelog
* Tue Oct 02 2012 Till Maas <opensource@till.name> - 2012.09.27-2
- Use noreplace for config file
* Tue Oct 2 2012 Tim Landscheidt <tim@tim-landscheidt.de> - 2012.09.27-1
- Bump Python requirement to 2.6.
- Update to new release and GitHub tarballs.
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.02.27-2 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.02.27-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

Loading…
Cancel
Save