Mageia Bugzilla – Attachment 581 Details for
Bug 1845
pixelize package
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
pixelize specfile
pixelize.spec (text/x-rpm-spec), 1.92 KB, created by
Olivier Delaune
on 2011-06-18 12:18:54 CEST
(
hide
)
Description:
pixelize specfile
Filename:
MIME Type:
Creator:
Olivier Delaune
Created:
2011-06-18 12:18:54 CEST
Size:
1.92 KB
patch
obsolete
>%define name pixelize >%define version 1.0.0 >%define release %mkrel 1 > >Name: %{name} >Summary: A program to build larger pictures from hundreds of smaller images >Version: %{version} >Release: %{release} >Source0: ftp://lashwhip.com/pub/%{name}-%{version}.tar.gz >URL: http://lashwhip.com/pixelize.html >Group: Graphics >BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot >License: GPLv2+ >BuildRequires: gtk2-devel > >%description >Pixelize is a program that will use many scaled down images to >try to duplicate, as closely as possible, another image. It >works by splitting up the image you want rendered (or duplicated) >into a grid of small rectangular areas. Each area is analyzed, >and replaced with an image chosen from a large database of images. >Pixelize tries to pick images that best match each area. It works >best when it can choose images from a very large database of images. >With about 1000 images, Pixelize can do a reasonable job. > >%prep >%setup -q > ># fix compiler flags >sed -i -e 's|CFLAGS = -g|CFLAGS = %{optflags}|' Makefile >sed -i -e 's|DFLAGS =|DFLAGS = %{ldflags}|' Makefile > >%build >%make > >%install >rm -rf %{buildroot} >mkdir -p %{buildroot}%{_bindir} >install -m 755 pixelize %{buildroot}%{_bindir} >install -m 755 make_db %{buildroot}%{_bindir} > >#mdk menu entry >mkdir -p %{buildroot}%{_datadir}/applications >cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF >[Desktop Entry] >Encoding=UTF-8 >Name=Pixelize >Exec=%{_bindir}/%{name} >Icon=graphics_section >Terminal=false >Type=Application >Categories=Graphics; >MimeType=image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap; >EOF > >%clean >rm -rf %{buildroot} > >%files >%defattr(-,root,root) >%doc README LICENSE TODO >%{_bindir}/make_db >%{_bindir}/pixelize >%{_datadir}/applications/pixelize.desktop > >%changelog >* Sat Jun 18 2011 Olivier Delaune <olivier.delaune@wanadoo.fr> 1.0.0-1.mga1 >- Specfile adaptations for Mageia >
%define name pixelize %define version 1.0.0 %define release %mkrel 1 Name: %{name} Summary: A program to build larger pictures from hundreds of smaller images Version: %{version} Release: %{release} Source0: ftp://lashwhip.com/pub/%{name}-%{version}.tar.gz URL: http://lashwhip.com/pixelize.html Group: Graphics BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot License: GPLv2+ BuildRequires: gtk2-devel %description Pixelize is a program that will use many scaled down images to try to duplicate, as closely as possible, another image. It works by splitting up the image you want rendered (or duplicated) into a grid of small rectangular areas. Each area is analyzed, and replaced with an image chosen from a large database of images. Pixelize tries to pick images that best match each area. It works best when it can choose images from a very large database of images. With about 1000 images, Pixelize can do a reasonable job. %prep %setup -q # fix compiler flags sed -i -e 's|CFLAGS = -g|CFLAGS = %{optflags}|' Makefile sed -i -e 's|DFLAGS =|DFLAGS = %{ldflags}|' Makefile %build %make %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} install -m 755 pixelize %{buildroot}%{_bindir} install -m 755 make_db %{buildroot}%{_bindir} #mdk menu entry mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Pixelize Exec=%{_bindir}/%{name} Icon=graphics_section Terminal=false Type=Application Categories=Graphics; MimeType=image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap; EOF %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README LICENSE TODO %{_bindir}/make_db %{_bindir}/pixelize %{_datadir}/applications/pixelize.desktop %changelog * Sat Jun 18 2011 Olivier Delaune <olivier.delaune@wanadoo.fr> 1.0.0-1.mga1 - Specfile adaptations for Mageia
View Attachment As Raw
Actions:
View
Attachments on
bug 1845
: 581