Compare commits
11 Commits
d066e2ae27
...
334f92a386
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
334f92a386 | ||
|
|
3273ec98a5 | ||
|
|
62691b7110 | ||
|
|
c1d34179e1 | ||
|
|
e298ba1404 | ||
|
|
7bc0e7c659 | ||
|
|
a3903e9867 | ||
|
|
8844f9dce6 | ||
|
|
bca3f03b32 | ||
|
|
5198b4bac3 | ||
|
|
849e6f9469 |
@ -0,0 +1,12 @@
|
|||||||
|
diff -uNr tumbler-0.3.1.orig/tumblerd/tumbler-group-scheduler.c tumbler-0.3.1/tumblerd/tumbler-group-scheduler.c
|
||||||
|
--- tumbler-0.3.1.orig/tumblerd/tumbler-group-scheduler.c 2020-11-16 00:19:23.000000000 +0800
|
||||||
|
+++ tumbler-0.3.1/tumblerd/tumbler-group-scheduler.c 2021-06-15 20:05:33.748518520 +0800
|
||||||
|
@@ -164,7 +164,7 @@
|
||||||
|
|
||||||
|
/* allocate a pool with one thread for all requests */
|
||||||
|
scheduler->pool = g_thread_pool_new (tumbler_group_scheduler_thread,
|
||||||
|
- scheduler, 1, TRUE, NULL);
|
||||||
|
+ scheduler, g_get_num_processors(), TRUE, NULL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
BIN
tumbler-0.3.1.tar.bz2
Normal file
BIN
tumbler-0.3.1.tar.bz2
Normal file
Binary file not shown.
113
tumbler.spec
Normal file
113
tumbler.spec
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
%global xfceversion 4.16
|
||||||
|
|
||||||
|
Name: tumbler
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 1
|
||||||
|
Summary: D-Bus service for applications to request thumbnails
|
||||||
|
|
||||||
|
License: GPLv2+ and LGPLv2+
|
||||||
|
URL: http://git.xfce.org/xfce/tumbler/
|
||||||
|
#VCS git:git://git.xfce.org/xfce/tumbler
|
||||||
|
Source0: https://archive.xfce.org/src/xfce/%{name}/0.3/%{name}-%{version}.tar.bz2
|
||||||
|
Patch1: 0001-multithread-using-the-number-of-processors-on-the-sy.patch
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: freetype-devel
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: gtk2-devel >= 2.10.0
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: libpng-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: poppler-glib-devel
|
||||||
|
|
||||||
|
# extra thumbnailers
|
||||||
|
BuildRequires: gstreamer1-plugins-base-devel
|
||||||
|
BuildRequires: libgsf-devel
|
||||||
|
BuildRequires: libopenraw-gnome-devel
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Tumbler is a D-Bus service for applications to request thumbnails for various
|
||||||
|
URI schemes and MIME types. It is an implementation of the thumbnail
|
||||||
|
management D-Bus specification described on
|
||||||
|
http://live.gnome.org/ThumbnailerSpec written in an object-oriented fashion
|
||||||
|
|
||||||
|
Additional thumbnailers can be found in the tumbler-extras package
|
||||||
|
|
||||||
|
|
||||||
|
%package extras
|
||||||
|
Summary: Additional thumbnailers for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description extras
|
||||||
|
This package contains additional thumbnailers for file types, which are not used
|
||||||
|
very much and require additional libraries to be installed.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains libraries and header files for developing applications
|
||||||
|
that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
|
||||||
|
# Omit unused direct shared library dependencies.
|
||||||
|
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
|
||||||
|
|
||||||
|
# Remove rpaths.
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
# fix permissions for installed libs
|
||||||
|
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/*.so
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
|
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog NEWS TODO
|
||||||
|
%config(noreplace) %{_sysconfdir}/xdg/tumbler/
|
||||||
|
%{_datadir}/dbus-1/services/org.xfce.Tumbler.*.service
|
||||||
|
%{_libdir}/libtumbler-*.so.*
|
||||||
|
%{_libdir}/tumbler-*/
|
||||||
|
%{_datadir}/icons/hicolor/*/*/org.xfce*%{name}*
|
||||||
|
%exclude %{_libdir}/tumbler-*/plugins/tumbler-gst-thumbnailer.so
|
||||||
|
%exclude %{_libdir}/tumbler-*/plugins/tumbler-raw-thumbnailer.so
|
||||||
|
|
||||||
|
%files extras
|
||||||
|
%{_libdir}/tumbler-*/plugins/tumbler-gst-thumbnailer.so
|
||||||
|
%{_libdir}/tumbler-*/plugins/tumbler-raw-thumbnailer.so
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libtumbler-*.so
|
||||||
|
%{_libdir}/pkgconfig/%{name}-1.pc
|
||||||
|
|
||||||
|
%doc %{_datadir}/gtk-doc/
|
||||||
|
|
||||||
|
%dir %{_includedir}/%{name}-1
|
||||||
|
%{_includedir}/%{name}-1/tumbler
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.3.1-1
|
||||||
|
- Update to 0.3.1
|
||||||
|
|
||||||
|
* Thu Jul 9 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.2.8-1
|
||||||
|
- Init package
|
||||||
4
tumbler.yaml
Normal file
4
tumbler.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: https://gitlab.xfce.org/xfce/tumbler.git
|
||||||
|
tag_prefix: "tumbler-"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user