diff --git a/dist/debian/valentina.install b/dist/debian/valentina.install
index d27f943f0..2964cffec 100644
--- a/dist/debian/valentina.install
+++ b/dist/debian/valentina.install
@@ -4,4 +4,3 @@ usr/share/valentina/translations/*
usr/share/valentina/tables/standard/*
usr/share/pixmaps/*
usr/share/applications/*
-dist/application-x-valentina-pattern.png usr/share/pixmaps
diff --git a/dist/rpm/_service b/dist/rpm/_service
new file mode 100644
index 000000000..84ecf7b45
--- /dev/null
+++ b/dist/rpm/_service
@@ -0,0 +1,18 @@
+
+
+ https://github.com/dismine/Valentina.git
+ 0.2.8-alpha
+ valentina
+ master
+ git
+
+
+ *.tar
+ */dist/rpm/valentina.spec
+
+
+ *.tar
+ gz
+
+
+
diff --git a/dist/rpm/valentina.spec b/dist/rpm/valentina.spec
index 39e13ab9e..9d190c1dc 100644
--- a/dist/rpm/valentina.spec
+++ b/dist/rpm/valentina.spec
@@ -2,68 +2,70 @@ Name:valentina
# Fedora specifics
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
-BuildRequires: pkgconfig(Qt5Core) libqt5-qttools >= 5.0.0 libQtSvg-devel >= 5.0.0 ccache
+BuildRequires: pkgconfig(Qt5Core) libqt5-qttools >= 5.2.0 libQtSvg-devel >= 5.2.0 ccache
%endif
# SUSE Specifics
%if 0%{?suse_version} > 0
-BuildRequires: libqt5-qtbase-devel >= 5.0.0 libqt5-qttools >= 5.0.0 libQt5Svg-devel >= 5.0.0 ccache update-desktop-files
+BuildRequires: libqt5-qtbase-devel >= 5.2.0 libqt5-qttools >= 5.2.0 libQt5Svg-devel >= 5.2.0 ccache update-desktop-files
%endif
-Version: 0.2.2
+Version: 0.2.8
Release: 1
URL: https://bitbucket.org/dismine/valentina
License: GPL-3.0+
-Source0: %{name}-%{version}.tar.gz
+Source0: %{name}-%{version}.tar
Group: Graphics
Summary: Pattern Making Application
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Packager: Roman Telezhinsky
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Packager: Roman Telezhinskyi
%description
-Open source project of creating a pattern making program, whose allow
-create and modeling patterns of clothing.
+Valentina is a cross-platform patternmaking program which allows designers
+to create and model patterns of clothing. This software allows pattern
+creation, using either standard sizing tables or an individual’s set of
+measurements. It blends new technologies with traditional methods to create
+a unique pattern making tool.
%prep
%setup -q -n %{name}-%{version}
%build
-qmake-qt5
+qmake-qt5 PREFIX=%{_prefix} Valentina.pro -r
%{__make} %{?jobs:-j %jobs}
%install
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,share}
-mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/translations
-%{__install} -Dm 755 -s bin/%{name} %{buildroot}%{_bindir}/%{name}
-%{__install} -Dm 644 dist/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
-%{__install} -Dm 644 dist/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
-%{__install} -Dm 644 dist/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
-%{__install} -Dm 644 share/translations/valentina_uk.qm %{buildroot}%{_datadir}/%{name}/translations/valentina_uk.qm
-%{__install} -Dm 644 share/translations/valentina_ru.qm %{buildroot}%{_datadir}/%{name}/translations/valentina_ru.qm
+%{__make} install
+gzip -9c dist/debian/%{name}.1 > dist/debian/%{name}.1.gz &&
+%{__install} -Dm 644 dist/debian/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
+
%if 0%{?suse_version} > 0
%suse_update_desktop_file -r %{name} VectorGraphics
%endif
-%clean
-[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
-
%files
%defattr(-,root,root,-)
-%doc README LICENSE
+%doc README.txt LICENSE_GPL.txt
%doc %{_mandir}/man1/%{name}.1.gz
%{_bindir}/*
+%{_libdir}/*
%{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/%{name}.png
-%{_datadir}/%{name}/translations/valentina_uk.qm
-%{_datadir}/%{name}/translations/valentina_ru.qm
+%{_datadir}/pixmaps/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
+%{_datadir}/%{name}/translations/*.qm
+%dir %{_datadir}/%{name}/tables/standard
+%{_datadir}/%{name}/tables/standard/*.vst
+
+%clean
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
+
+%post
+ldconfig
%changelog
-* Mon Dec 9 2013 Roman Telezhinsky
+* Mon Dec 22 2014 Roman Telezhinskyi
- Initial build
-
-
diff --git a/src/app/app.pro b/src/app/app.pro
index d4520737e..1c8dc760b 100644
--- a/src/app/app.pro
+++ b/src/app/app.pro
@@ -178,13 +178,14 @@ unix{
# Path to bin file after installation
target.path = $$PREFIX/bin
- # .desctop file
+ # .desktop file
desktop.path = $$DATADIR/applications/
desktop.files += ../../dist/$${TARGET}.desktop
# logo
pixmaps.path = $$DATADIR/pixmaps/
- pixmaps.files += ../../dist/$${TARGET}.png
+ pixmaps.files += ../../dist/$${TARGET}.png \
+ ../../dist/application-x-valentina-pattern.png
# Path to translation files after installation
translations.path = $$DATADIR/$${TARGET}/translations/