Adding README.md, .gitignore, .gitattributes; adding python-mat2 files
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
_buildconfig-*
|
||||||
|
_buildinfo-*
|
18
PyGObject-fix.diff
Normal file
18
PyGObject-fix.diff
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
--- setup.py.smb 2023-04-19 14:26:32.084976435 -0400
|
||||||
|
+++ setup.py 2023-04-19 14:26:37.108981431 -0400
|
||||||
|
@@ -16,7 +16,7 @@
|
||||||
|
scripts=['mat2'],
|
||||||
|
install_requires=[
|
||||||
|
'mutagen',
|
||||||
|
- 'PyGObject',
|
||||||
|
+ 'GObject',
|
||||||
|
'pycairo',
|
||||||
|
],
|
||||||
|
packages=setuptools.find_packages(exclude=('tests', )),
|
||||||
|
--- mat2.egg-info/requires.txt.smb 2023-04-19 14:27:44.545048446 -0400
|
||||||
|
+++ mat2.egg-info/requires.txt 2023-04-19 14:27:51.505055364 -0400
|
||||||
|
@@ -1,3 +1,3 @@
|
||||||
|
mutagen
|
||||||
|
-PyGObject
|
||||||
|
+GObject
|
||||||
|
pycairo
|
15
README.md
Normal file
15
README.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# python-mat2
|
||||||
|
|
||||||
|
URL: [mat2](https://pypi.org/project/mat2)
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
[GitHub](https://github.com/jvoisin/mat2)
|
||||||
|
|
||||||
|
Metadata consist of information that characterizes data. Metadata are used to provide documentation for data products. In essence, metadata answer who, what, when, where, why, and how about every facet of the data that are being documented.
|
||||||
|
|
||||||
|
Metadata within a file can tell a lot about you. Cameras record data about when a picture was taken and what camera was used. Office documents like PDF or Office automatically adds author and company information to documents and spreadsheets. Maybe you don't want to disclose those information.
|
||||||
|
|
||||||
|
This is precisely the job of mat2: getting rid, as much as possible, of metadata.
|
||||||
|
|
||||||
|
mat2 provides a command line tool, and graphical user interfaces via a service menu for Dolphin, the default file manager of KDE, and an extension for Nautilus, the default file manager of GNOME.
|
3
_service
Normal file
3
_service
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files" mode="manual" />
|
||||||
|
</services>
|
BIN
mat2-0.13.5.tar.gz
(Stored with Git LFS)
Normal file
BIN
mat2-0.13.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
python-mat2-rpmlintrc
Normal file
3
python-mat2-rpmlintrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
### 20250930: This is needed when building locally, but not in OBS
|
||||||
|
addFilter("python-bytecode-inconsistent-mtime *");
|
||||||
|
#####
|
84
python-mat2.changes
Normal file
84
python-mat2.changes
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 9 02:56:22 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Swapping 'Requires: python3dist(mat2) = %{version}' to
|
||||||
|
'Requires: python3-mat2' for manpage
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 10 15:41:08 UTC 2025 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Adding _service file
|
||||||
|
- Cleaning up pygobject/gobject requires
|
||||||
|
- Updating to upstream version 0.13.5
|
||||||
|
* Keep orientation metadata on jpeg and tiff files
|
||||||
|
* Improve cairo-related error/exceptions handling
|
||||||
|
* Improve the logging
|
||||||
|
* Improve the sandboxing
|
||||||
|
* Improve Python3.12 support
|
||||||
|
* Improve MSOffice documents handling
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 3 14:33:18 UTC 2024 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Adding ffmpeg-6 to list of Recommends
|
||||||
|
- Fixing up %patch directive
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 8 19:01:34 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Updating to upstream version 0.13.4
|
||||||
|
* Add documentation about mat2 on OSX
|
||||||
|
* Make use of python3.7 constructs to simplify code
|
||||||
|
* Use moderner type annotations
|
||||||
|
* Harden get_meta in archive.py against variants of CVE-2022-35410
|
||||||
|
* Improve MSOffice document support
|
||||||
|
* Package the manpage on pypi
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 19 19:06:32 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Fixing up '%patch' call (causes 15.4 build to fail)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 19 18:35:27 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Adding 'Requires: exiftool'
|
||||||
|
- Adding .diff to fixup GObject vs. PyGObject
|
||||||
|
- Updating to upstream version 0.13.3
|
||||||
|
* Fix a decorator argument
|
||||||
|
* Fix a crash on some python versions
|
||||||
|
* Improve xlsx support
|
||||||
|
* Remove the Nautilus extension
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 21 14:54:58 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Updating to upstream version 0.13.0
|
||||||
|
* Fix an arbitrary file read
|
||||||
|
* Add support for heic files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 11 01:08:24 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Updating to upstream version 0.12.4
|
||||||
|
* Fix possible errors/crashes when processing multiple files
|
||||||
|
via the command line interface
|
||||||
|
* Use a fixed PDF version for the output
|
||||||
|
* Improve compatibility with modern versions of rsvg
|
||||||
|
* Improve the robustness of the command line interface with
|
||||||
|
regard to control characters
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 15 21:51:23 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Adding a few 'Recommends:' so 'mat2 --help' works out of the box.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 15 21:14:27 UTC 2022 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Initial version of 0.12.3 from upstream via py2pack
|
||||||
|
* Implement code for internationalization
|
||||||
|
* Keep individual files compression type in zip files
|
||||||
|
* Increase the robustness of mat2 against weird/corrupted files
|
||||||
|
* Fix the dolphin integration
|
||||||
|
* Add a fuzzer
|
126
python-mat2.spec
Normal file
126
python-mat2.spec
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-mat2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define base_name libmat2
|
||||||
|
%define short_name mat2
|
||||||
|
%define skip_python311 1
|
||||||
|
%define skip_python312 1
|
||||||
|
|
||||||
|
Name: python-mat2
|
||||||
|
Version: 0.13.5
|
||||||
|
Release: 0
|
||||||
|
Summary: A handy tool to trash your metadata
|
||||||
|
Group: Productivity/Graphics/Other
|
||||||
|
License: LGPL-3.0+
|
||||||
|
#URL: https://0xacab.org/jvoisin/mat2
|
||||||
|
URL: https://github.com/jvoisin/mat2
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/m/mat2/mat2-%{version}.tar.gz
|
||||||
|
Source99: %{name}-rpmlintrc
|
||||||
|
### 20250210, can be removed next update
|
||||||
|
#Patch0: PyGObject-fix.diff
|
||||||
|
#####
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module gobject}
|
||||||
|
BuildRequires: %{python_module mutagen}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pycairo}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: exiftool
|
||||||
|
Requires: python3-mutagen
|
||||||
|
Requires: python3-pycairo
|
||||||
|
### 20250210, this seems to work better
|
||||||
|
#Requires: python3-gobject
|
||||||
|
Requires: python3-pygobject
|
||||||
|
#####
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
Recommends: typelib-1_0-Rsvg-2_0
|
||||||
|
Recommends: typelib-1_0-Poppler-0_18
|
||||||
|
Recommends: typelib-1_0-GdkPixbuf-2_0
|
||||||
|
Recommends: perl-Image-ExifTool
|
||||||
|
Recommends: bubblewrap
|
||||||
|
Recommends: (ffmpeg-4 or ffmpeg-5 or ffmpeg-6)
|
||||||
|
Recommends: %{name}-manpage
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Metadata consist of information that characterizes data. Metadata are used to
|
||||||
|
provide documentation for data products. In essence, metadata answer who,
|
||||||
|
what, when, where, why, and how about every facet of the data that are being
|
||||||
|
documented.
|
||||||
|
|
||||||
|
Metadata within a file can tell a lot about you. Cameras record data about
|
||||||
|
when a picture was taken and what camera was used. Office documents like PDF
|
||||||
|
or Office automatically adds author and company information to documents and
|
||||||
|
spreadsheets. Maybe you don't want to disclose those information.
|
||||||
|
|
||||||
|
This is precisely the job of mat2: getting rid, as much as possible,
|
||||||
|
of metadata.
|
||||||
|
mat2 provides a command line tool, and graphical user interfaces via a service
|
||||||
|
menu for Dolphin, the default file manager of KDE, and an extension for
|
||||||
|
Nautilus, the default file manager of GNOME.
|
||||||
|
|
||||||
|
%package -n %{name}-manpage
|
||||||
|
Summary: Manpage for %{name}
|
||||||
|
#Provides: python39-mat2-manpage
|
||||||
|
#Provides: python310-mat2-manpage
|
||||||
|
#Provides: python311-mat2-manpage
|
||||||
|
Requires: python3-mat2
|
||||||
|
Requires: man
|
||||||
|
Supplements: (%{name} and man)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n %{name}-manpage
|
||||||
|
Manual page for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n mat2-%{version}
|
||||||
|
%patch -P 0
|
||||||
|
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
|
||||||
|
|
||||||
|
%build
|
||||||
|
#%%python_build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
#%%python_install
|
||||||
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/mat2
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%python_expand chmod -v 755 %{buildroot}%{$python_sitelib}/libmat2/__init__.py
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative mat2
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative mat2
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.md
|
||||||
|
%python_alternative %{_bindir}/mat2
|
||||||
|
%{python_sitelib}/%{base_name}*
|
||||||
|
#%%{python_sitelib}/%%{short_name}-%%{version}-*.egg-info
|
||||||
|
#%%{python_sitelib}/%%{short_name}-%%{version}-*.egg-info/*
|
||||||
|
%{python_sitelib}/%{short_name}-%{version}.dist-info
|
||||||
|
|
||||||
|
%files -n %{name}-manpage
|
||||||
|
%{_mandir}/man1/%{short_name}.1%?ext_man
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user