-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from pbiering/add-rpm-support
Add rpm support - forgotten fixes
- Loading branch information
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
|
||
%define rel 1 | ||
|
||
|
||
Name: vdr-%{pname} | ||
Version: 0.9.5 | ||
%if 0%{?gitcommit:1} | ||
|
@@ -97,8 +96,18 @@ mkdir -p $RPM_BUILD_ROOT/usr/sbin/ | |
%make_install | ||
popd | ||
|
||
install -Dpm 644 %{SOURCE1} \ | ||
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf | ||
if [ -e %{SOURCE1} ]; then | ||
# use from SOURCES / local directory | ||
echo "NOTICE: take default config file from SOURCES" | ||
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf | ||
elif [ -e contrib/$(basename "%{SOURCE1}") ]; then | ||
# use from inside tgz (rpmbuild -tb build) | ||
echo "NOTICE: take default config file from package" | ||
install -Dpm 644 contrib/$(basename "%{SOURCE1}") $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf | ||
else | ||
echo "ERROR: can't find default config file %{SOURCE1}" | ||
exit 1 | ||
fi | ||
|
||
%find_lang %{name} --all-name --with-man | ||
|
||
|
@@ -119,7 +128,8 @@ install -Dpm 644 mcliheaders.h $RPM_BUILD_ROOT%{_includedir}/vdr | |
|
||
%changelog | ||
* Tue Jan 26 2021 Peter Bieringer <[email protected]> - 0.9.5-1 | ||
- Create subpackage devel | ||
- Update to new release | ||
- Use default config file from package in case of rpmbuild -tX | ||
|
||
* Sun Dec 20 2020 Peter Bieringer <[email protected]> - 0.9.4-2 | ||
- Create subpackage devel | ||
|