From c713c80c18829ed193f1400cce9cf79cba04d45c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 6 Feb 2016 16:54:15 +0530 Subject: [PATCH] add PKGBUILD.in and openmedialibrary.spec --- .gitignore | 3 +++ Makefile | 12 +++++++----- PKGBUILD.in | 18 ++++++++++++++++++ openmedialibrary.spec | 40 ++++++++++++++++++++++++++++++++++++++++ openmedialibrary.spec.in | 40 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+), 5 deletions(-) create mode 100644 PKGBUILD.in create mode 100644 openmedialibrary.spec create mode 100644 openmedialibrary.spec.in diff --git a/.gitignore b/.gitignore index 4325c8b..01b8452 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ debian/openmedialibrary.debhelper.log debian/openmedialibrary.substvars debian/openmedialibrary/ debian/stamp-makefile-build +PKGBUILD +openmedialibrary.spec +*.tar.xz diff --git a/Makefile b/Makefile index 455335b..85d98e6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1 +VERSION=0.2 PROG = bin/openmedialibrary PREFIX ?= /usr @@ -12,11 +12,10 @@ all: ${PROG} ${DESKTOP} install: ${PROG} @mkdir -p "${SHAREDIR}/applications" @mkdir -p "${BINDIR}" - ${INSTALL} -m 555 -o root -g root ${PROG} ${BINDIR} - ${INSTALL} -m 755 -o root -g root -d ${SHAREDIR}/openmedialibrary - ${INSTALL} -m 444 -o root openmedialibrary.desktop ${SHAREDIR}/applications/openmedialibrary.desktop + ${INSTALL} -m 555 ${PROG} ${BINDIR} + ${INSTALL} -m 755 -d ${SHAREDIR}/openmedialibrary + ${INSTALL} -m 444 openmedialibrary.desktop ${SHAREDIR}/applications/openmedialibrary.desktop @cp -r openmedialibrary ${SHAREDIR} - @chown -R root:root ${SHAREDIR}/openmedialibrary clean: @@ -29,4 +28,7 @@ dist: PKGBUILD: PKGBUILD.in dist sed -e "s/VERSION/${VERSION}/g" -e "s/SHA1SUM/`sha1sum openmedialibrary-${VERSION}.tar.xz | cut -f1 -d' '`/g" PKGBUILD.in > PKGBUILD +openmedialibrary.spec: openmedialibrary.spec.in dist + sed -e "s/VERSION/${VERSION}/g" -e "s/SHA1SUM/`sha1sum openmedialibrary-${VERSION}.tar.xz | cut -f1 -d' '`/g" openmedialibrary.spec.in > openmedialibrary.spec + .PHONY: all install uninstall dist diff --git a/PKGBUILD.in b/PKGBUILD.in new file mode 100644 index 0000000..a87a606 --- /dev/null +++ b/PKGBUILD.in @@ -0,0 +1,18 @@ +# $Id$ +# Maintainer: Open Media Library + +pkgname=openmedialibrary +pkgver=VERSION +pkgrel=1 +pkgdesc="manage and sync your digital media collections" +url="https://openmedialibrary.com" +license=('GPL3') +arch=('any') +depends=('python' 'python-pillow' 'python-lxml' 'python-pyopenssl' 'python-crypto' 'poppler' 'python-gobject') +source=(https://downloads.openmedialibrary.com/$pkgname-$pkgver.tar.xz) +sha1sums=('SHA1SUM') + +package() { + cd "${pkgbase}-${pkgver}" + make install PREFIX=/usr DESTDIR="${pkgdir}" +} diff --git a/openmedialibrary.spec b/openmedialibrary.spec new file mode 100644 index 0000000..fbe6738 --- /dev/null +++ b/openmedialibrary.spec @@ -0,0 +1,40 @@ +Name: openmedialibrary +Version: 0.2 +Release: 1%{?dist} +Summary: Open Media Library - manage and sync your digital media collections + +License: GPLv3+ +URL: https://openmedialibrary.com/ +Source0: https://downloads.openmedialibrary.com/%{name}-%{version}.tar.xz + +Requires: python3, python3-pillow, python3-lxml, python3-pyOpenSSL, python3-crypto, python3-gobject, poppler-utils, gtk3 +BuildArch: noarch + +%description +manage and sync your digital media collections + + +%prep +%setup -q + + +%build +make %{?_smp_mflags} PREFIX=/usr + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + + +%files +%{_bindir}/openmedialibrary +%{_datadir}/%{name}/ +%{_datadir}/applications/openmedialibrary.desktop +%doc + + + +%changelog +* Sat Feb 6 2016 makerpm +- diff --git a/openmedialibrary.spec.in b/openmedialibrary.spec.in new file mode 100644 index 0000000..b0c33ff --- /dev/null +++ b/openmedialibrary.spec.in @@ -0,0 +1,40 @@ +Name: openmedialibrary +Version: VERSION +Release: 1%{?dist} +Summary: Open Media Library - manage and sync your digital media collections + +License: GPLv3+ +URL: https://openmedialibrary.com/ +Source0: https://downloads.openmedialibrary.com/%{name}-%{version}.tar.xz + +Requires: python3, python3-pillow, python3-lxml, python3-pyOpenSSL, python3-crypto, python3-gobject, poppler-utils, gtk3 +BuildArch: noarch + +%description +manage and sync your digital media collections + + +%prep +%setup -q + + +%build +make %{?_smp_mflags} PREFIX=/usr + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + + +%files +%{_bindir}/openmedialibrary +%{_datadir}/%{name}/ +%{_datadir}/applications/openmedialibrary.desktop +%doc + + + +%changelog +* Sat Feb 6 2016 makerpm +-