Skip to content

Commit

Permalink
fixed package_data issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ozmartian committed Feb 23, 2017
1 parent e5661f2 commit 358242b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 13 deletions.
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

50 changes: 50 additions & 0 deletions _packaging/fedora/vidcutter.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Created by pyp2rpm-3.2.2
%global pypi_name vidcutter
%global srcname vidcutter

Name: %{srcname}
Version: 3.0.0
Release: 1%{?dist}
Summary: FFmpeg based video cutter & joiner with a modern PyQt5 GUI

License: GPLv3+
URL: http://vidcutter.ozmartians.com
Source0:
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description
FFmpeg based video cutter & joiner with a modern PyQt5 GUI

%package -n %{srcname}
Summary: %{summary}
%{?python_provide:%python_provide %{srcname}}

Requires: python3-PyQt5
Requires: python3-setuptools
%description -n %{srcname}
FFmpeg based video cutter & joiner with a modern PyQt5 GUI

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


%files -n %{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Fri Feb 10 2017 Pete Alexandrou <[email protected]> - 3.0.0-1
- Initial package.
8 changes: 0 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def get_data_files():
('/usr/share/icons/hicolor/512x512/apps', ['data/icons/hicolor/512x512/apps/vidcutter.png']),
('/usr/share/applications', ['data/desktop/vidcutter.desktop'])
]
files.append(('.', ['README.md', 'LICENSE']))
return files


Expand All @@ -67,17 +66,10 @@ def get_data_files():

packages=['vidcutter'],

package_dir={'vidcutter': 'vidcutter'},

setup_requires=['setuptools'],

install_requires=get_install_requires(),

package_data={'vidcutter': [
'data/desktop/*.*',
'data/icons/*.*'
]},

data_files=get_data_files(),

entry_points={'gui_scripts': ['vidcutter = vidcutter.__main__:main']},
Expand Down

0 comments on commit 358242b

Please sign in to comment.