summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-19 09:03:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-19 09:03:02 +0000
commit5a05626b2e4d7b0800d6537a8597067f812f92ae (patch)
tree0374e3194ec7a38a3e39a6fe4e6e0a7d065891c5
parent5dff9574db46f8ddee4c9c848b1ffb65338d9e2a (diff)
automatic import of fehopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--feh.spec65
-rw-r--r--sources1
3 files changed, 67 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..53ed1d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/feh-3.9.1.tar.bz2
diff --git a/feh.spec b/feh.spec
new file mode 100644
index 0000000..04275ef
--- /dev/null
+++ b/feh.spec
@@ -0,0 +1,65 @@
+Name: feh
+Version: 3.9.1
+Release: 1
+Summary: Fast command line image viewer using Imlib2
+License: MIT
+URL: https://feh.finalrewind.org
+Source0: %{url}/%{name}-%{version}.tar.bz2
+
+BuildRequires: gcc
+BuildRequires: imlib2-devel
+BuildRequires: libcurl-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libXt-devel
+BuildRequires: libXinerama-devel
+BuildRequires: libexif-devel
+BuildRequires: perl-Test-Command
+BuildRequires: perl-Test-Harness
+BuildRequires: make
+Requires: dejavu-sans-fonts
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
+%description
+feh is a versatile and fast image viewer using imlib2, the
+premier image file handling library. feh has many features,
+from simple single file viewing, to multiple file modes using
+a slide-show or multiple windows. feh supports the creation of
+montages as index prints with many user-configurable options.
+
+%prep
+%autosetup -p1 -n feh-%{version}
+
+%build
+# Propagate values into config.mk
+sed -i \
+ -e "s|^doc_dir =.*$|doc_dir = \$(DESTDIR)%{_pkgdocdir}|" \
+ -e "s|^example_dir =.*$|example_dir = \$(doc_dir)/examples|" \
+ -e "s|^CFLAGS ?=.*$|CFLAGS = ${RPM_OPT_FLAGS}|" \
+ config.mk
+%make_build PREFIX="%{_prefix}" VERSION="%{version}" \
+ curl=1 exif=1 test=1 xinerama=1
+
+
+%install
+%make_install PREFIX=%{_prefix}
+rm %{buildroot}%{_datadir}/%{name}/fonts/yudit.ttf
+find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
+rm %{buildroot}%{_docdir}/%{name}/examples/find-lowres
+
+%check
+make test
+
+%files
+%license COPYING
+%doc %{_docdir}/%{name}
+%{_bindir}/*
+%{_datadir}/%{name}/
+%{_datadir}/applications/%{name}.desktop
+%{_mandir}/man1/*
+%{_datarootdir}/icons/hicolor/48x48/apps/feh.png
+%{_datarootdir}/icons/hicolor/scalable/apps/feh.svg
+
+%changelog
+* Fri Feb 17 2023 lichaoran <pkwarcraft@hotmail.com> - 3.9.1-1
+- init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..bf2758c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d83f1731515d31069908d4bda5f3489b feh-3.9.1.tar.bz2